Skip to content

Conversation

soedirgo
Copy link
Member

@soedirgo soedirgo commented Sep 16, 2024

schemaname::regnamespace only works if the name is already quoted - e.g. for a schema named MySchema, '"MySchema"'::regnamespace works but 'MySchema'::regnamespace doesn't. So we use %I formatting instead.

  • sanity tested on stg:
create schema "MySchema";
alter default privileges for role postgres in schema "MySchema" grant all on tables to anon;

@soedirgo soedirgo requested a review from a team as a code owner September 16, 2024 23:59
@darora darora merged commit 748cb91 into develop Sep 17, 2024
8 checks passed
@darora darora deleted the fix/schema-name-escaping branch September 17, 2024 00:52
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.

2 participants