Re: Experience and feedback on pg_restore --data-only
shammat@gmx.net
From: shammat@gmx.net
To: pgsql-general@lists.postgresql.org
Date: 2025-03-24T15:51:28Z
Lists: pgsql-general
Dimitrios Apostolou schrieb am 20.03.2025 um 23:48: > Things that made my life hard: > > * plenty of permission denials for both ALTER OWNER or SET SESSION > AUTHORIZATION (depending on command line switches). Both of these > require superuser privilege, but in my case this is not really needed. > Dbowner has CREATEROLE and is the one who creates all the roles (WITH > SET TRUE), and their private schemata in the specific database. Things > would work if pg_restore did "SET ROLE" instead of "SET SESSION > AUTHORIZATION" to switch user. Is this a straightforward change or there > are issues I don't see? I think that can be avoided by using --no-owner and --no-privileges