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 table event triggers for vectorize.jobs #148

Open
ChuckHend opened this issue Oct 11, 2024 · 3 comments
Open

drop table event triggers for vectorize.jobs #148

ChuckHend opened this issue Oct 11, 2024 · 3 comments
Labels

Comments

@ChuckHend
Copy link
Member

if a table is dropped that is part of vectorize.jobs, then the vectorize.job should also be deleted.

an event trigger can solve this. some scratch code as example of the idea

CREATE OR REPLACE FUNCTION after_drop_trigger()
RETURNS event_trigger AS $$
BEGIN
    DELETE FROM vectorize.job WHERE table_name = TG_TABLE_NAME;
END;
$$ LANGUAGE plpgsql;
CREATE EVENT TRIGGER trg_after_drop
ON sql_drop
WHEN TAG IN ('DROP TABLE')
EXECUTE FUNCTION after_drop_trigger();
@ChuckHend ChuckHend added the enhancement New feature or request label Oct 11, 2024
Copy link

algora-pbc bot commented Oct 17, 2024

💎 $200 bounty • Tembo

Steps to solve:

  1. Start working: Comment /attempt #148 with your implementation plan
  2. Submit work: Create a pull request including /claim #148 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/pg_vectorize!

Add a bountyShare on socials

Attempt Started (GMT+0) Solution
🟢 @varshith257 Oct 17, 2024, 12:22:28 PM WIP

@varshith257
Copy link

varshith257 commented Oct 17, 2024

/attempt #148

Algora profile Completed bounties Tech Active attempts Options
@varshith257 16 bounties from 8 projects
Go, Rust,
Scala & more
﹟145
Cancel attempt

@varshith257
Copy link

@ChuckHend Can I get this issue assigned?

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

No branches or pull requests

3 participants