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

bump to supautils 2.7.0 #1502

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft

bump to supautils 2.7.0 #1502

wants to merge 2 commits into from

Conversation

steve-chavez
Copy link
Member

@steve-chavez steve-chavez commented Mar 28, 2025

WIP: this is just to test how everything goes with the upgrade

Provides event trigger support
https://github.com/supabase/supautils/releases/tag/v2.7.0

This is to get more valuable feedback earlier in case of failure
@steve-chavez
Copy link
Member Author

See the failure on the CI logs.

As expected, a ERROR: Superuser owned event trigger must execute a superuser owned function arises due to #1437.

There is however an unexpected error ERROR: cache lookup failed for function 0. I've confirmed that it's related to the demoting of the postgres user:

ALTER ROLE postgres NOSUPERUSER CREATEDB CREATEROLE LOGIN REPLICATION BYPASSRLS;

And this produces a bad interaction with supautils force_noop. I will fix this on supautils itself, but will not include a test there since I cannot reproduce in isolation (I've been trying but no dice). I've confirmed manually that it fixes the error here though.

@steve-chavez
Copy link
Member Author

I will fix this on supautils itself, but will not include a test there since I cannot reproduce in isolation (I've been trying but no dice).

Managed to reproduce this on supabase/supautils#129, see https://github.com/supabase/supautils/actions/runs/14162520988/job/39670180133?pr=129.

Turns out this is an interaction with plpgsql_check.

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