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

fix: drop pg_cron event trigger #785

Closed
wants to merge 1 commit into from

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented Nov 8, 2023

We already have an after-create script in https://github.com/supabase/postgres/blob/13b317b3bc74e4b2da7c1860b6f43e432fb17c8d/ansible/files/postgresql_extension_custom_scripts/pg_cron/after-create.sql , so the event trigger is redundant.

Why move away from event triggers: https://www.notion.so/supabase/move-away-from-event-triggers-to-custom-extension-scripts-08cb6c4fae39422ba57fd11135d71659?pvs=4

15.1.0.132 hasn't been deployed so seems fine to edit the migration in place, if not I'll write the change as a new migration

@soedirgo soedirgo requested review from a team as code owners November 8, 2023 09:20
@soedirgo
Copy link
Member Author

soedirgo commented Nov 8, 2023

Seems like migrations are deployed on prod upon merging to develop. That means we can't merge this PR now, because restored projects won't have the after-create.sql until the new AMI is out on prod.

We can remove the event trigger in a new AMI.

@soedirgo soedirgo closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant