Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop queue should infer queue type #302

Closed
ChuckHend opened this issue Aug 23, 2024 · 7 comments · Fixed by #319
Closed

drop queue should infer queue type #302

ChuckHend opened this issue Aug 23, 2024 · 7 comments · Fixed by #319
Labels

Comments

@ChuckHend
Copy link
Member

CREATE FUNCTION pgmq.drop_queue(queue_name TEXT, partitioned BOOLEAN DEFAULT FALSE)
takes in a parameter designating whether the queue to drop is partitioned. When that flag is true, pgmq will handle deleting the objects/records from pg_partman as well. So if you run pgmq.drop_queue() on a partitioned queue without the flag, there will be some orphaned pg_partman stuff laying around.

the pgmq.meta table has an attribute that tracks whether table is partitioned. So on the drop_queue() call, I think we should drop the partitioned and replace it with a query to something like select is_partitioned from pgmq.meta where ....

@ChuckHend ChuckHend added the bug Something isn't working label Aug 23, 2024
@ChuckHend ChuckHend added enhancement New feature or request and removed bug Something isn't working labels Sep 6, 2024
@ChuckHend ChuckHend added the help wanted Extra attention is needed label Oct 14, 2024
Copy link

algora-pbc bot commented Oct 17, 2024

## 💎 $150 bounty • Tembo

### Steps to solve:
1. Start working: Comment /attempt #302 with your implementation plan
2. Submit work: Create a pull request including /claim #302 in the PR body to claim the bounty
3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to tembo-io/pgmq!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @Saturn225 Oct 17, 2024, 1:19:53 PM WIP
🟢 @Neptune650 Oct 17, 2024, 3:51:30 PM #319

@Saturn225
Copy link
Contributor

Saturn225 commented Oct 17, 2024

/attempt #302

Algora profile Completed bounties Tech Active attempts Options
@Saturn225 1 bounty from 1 project
Rust, Scala,
HTML
Cancel attempt

@Saturn225
Copy link
Contributor

Can I get this assigned? @ChuckHend

@Neptune650
Copy link
Contributor

Neptune650 commented Oct 17, 2024

/attempt #302

Algora profile Completed bounties Tech Active attempts Options
@Neptune650 2 bounties from 2 projects
C++, C,
Python & more
Cancel attempt

Copy link

algora-pbc bot commented Oct 17, 2024

💡 @Neptune650 submitted a pull request that claims the bounty. You can visit your bounty board to reward.

@ChuckHend
Copy link
Member Author

implemented in #319

Copy link

algora-pbc bot commented Oct 23, 2024

🎉🎈 @Neptune650 has been awarded $150! 🎈🎊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants