-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
postgres
ownership not preserved during pause/restore
#190
Comments
I couldn't reproduce with the latest platform locally. I tried creating a stripe wrapper both from the UI and by manually running the SQL commands from the studio. Also tried creating the extension in different schemas as there's another issue in which permissions depend upon the schema. In all cases, the dump file correctly contains lines updating ownership to CREATE FOREIGN DATA WRAPPER stripe_wrapper HANDLER extensions.stripe_fdw_handler VALIDATOR extensions.stripe_fdw_validator;
ALTER FOREIGN DATA WRAPPER stripe_wrapper OWNER TO postgres;
CREATE SERVER stripe_server FOREIGN DATA WRAPPER stripe OPTIONS (
api_key_id 'f869e5ea-a566-4218-aeb1-edeb91ceb055',
api_url 'https://api.stripe.com/v1'
);
ALTER SERVER stripe_server OWNER TO postgres; @olirice how exactly did you create the foreign wrapper/server? Can you reproduce it still? |
Just ran it through the described process in that thread and am no longer able to reproduce Hopefully I was mistaken during prior testing. If not, we can handle this if/when it pops up again |
[supabase#190-again] Fix for 190, and deletion of selected GD
Bug report
If you create a Wrapper in Supabase Studio it is owned by the
postgres
role.If you then pause and restore the project, the owner of the foreign data wrapper + server change to
supabase_admin
Note that the ownership changes for:
create foreign data wrapper ...
create server
but not the foreign tables (these continue to be owned by postgres)
I tested with airtable and firebase
There is an associated support ticket (resolved): https://app.hubspot.com/live-messages/19953346/inbox/5492182653#email
please update in the notion task as well as here
The text was updated successfully, but these errors were encountered: