Skip to content

Comments

Use --no-acl flag when restoring to exclude GRANT and REVOKE commands#2084

Merged
dsavineau merged 1 commit intoansible:develfrom
rooftopcellist:restore-public-schema
Oct 15, 2025
Merged

Use --no-acl flag when restoring to exclude GRANT and REVOKE commands#2084
dsavineau merged 1 commit intoansible:develfrom
rooftopcellist:restore-public-schema

Conversation

@rooftopcellist
Copy link
Member

@rooftopcellist rooftopcellist commented Oct 9, 2025

SUMMARY

Use --no-acl flag when restoring to exclude GRANT and REVOKE commands

This avoids running in to the following error when pg_restore is run as
the application db user from the db-management pod:

pg_restore: error: could not execute query: ERROR: must be member of role postgres
Command was: ALTER SCHEMA public OWNER TO postgres;

ISSUE TYPE
  • Bug, Docs Fix or other nominal change

  This avoids running in to the following error when pg_restore is run as
  the application db user from the db-management pod:

  pg_restore: error: could not execute query: ERROR: must be member of role postgres
  Command was: ALTER SCHEMA public OWNER TO postgres;
@dsavineau dsavineau merged commit c5533f4 into ansible:devel Oct 15, 2025
8 checks passed
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.

4 participants