From: Edwin Polkerman <edwin.polkerman@splendiddata.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16772: Options --disable-triggers in combination with --superuser does not have the expected result
Date: Mon, 14 Dec 2020 17:46:06 +0100
Message-ID: <823a2a53-41d1-1df2-5e3f-ea4ea6ed628d@splendiddata.com> (raw)
In-Reply-To: <912768.1607964075@sss.pgh.pa.us>
References: <16772-3c85d0bb913fa9e8@postgresql.org>
<912768.1607964075@sss.pgh.pa.us>
Thank you very much for the clarification. I indeed misunderstood the
documentation on this one....
On 12/14/20 5:41 PM, Tom Lane wrote:
> PG Bug reporting form <noreply@postgresql.org> writes:
>> Trying to create a dump with following command line:
>> pg_dumpall -h <database host> -p 5432 -U user1 -f /tmp/dump.out
>> --disable-triggers -S user2 -v
>> User1 is a regular user and user2 is a superuser like the documentation
>> states: "Specify the superuser user name to use when disabling triggers"
> I think you misunderstood the docs; perhaps there's an opportunity to
> clarify them. The pg_dumpall run itself has to run as superuser
> so that it can extract role passwords, therefore user1 has to be
> superuser. What "-S" is for is to specify a superuser role name that
> the dump's output script can use *at restore time* to monkey with
> trigger settings. That switch exists mainly because you might be planning
> to restore into a different installation with different superusers.
> Therefore, that name is *not* used during the dump.
>
> regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: edwin.polkerman@splendiddata.com, tgl@sss.pgh.pa.us, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16772: Options --disable-triggers in combination with --superuser does not have the expected result
In-Reply-To: <823a2a53-41d1-1df2-5e3f-ea4ea6ed628d@splendiddata.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox