From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Aditya D <dsaditya91@gmail.com>
Cc: pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: pg_restore -L reordering of the statements does not work
Date: Sat, 28 Oct 2023 21:49:24 -0400
Message-ID: <2028815.1698544164@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwbhB3KXR3QWWcxAjX=iWdL5mjXVTWy6B9dLTutiftbLOw@mail.gmail.com>
References: <CAEATte6vgZr6d2abZo9_wxTarwQP3TC_NLpCKTDzWW4E4OB9cw@mail.gmail.com>
<1589825.1698431686@sss.pgh.pa.us>
<CAEATte7YenuErgVY+kT6kmvtZ6oMpzNqxUJ9XJkSt0+HpW-Q1A@mail.gmail.com>
<CAKFQuwbhB3KXR3QWWcxAjX=iWdL5mjXVTWy6B9dLTutiftbLOw@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Sat, Oct 28, 2023, 18:37 Aditya D <dsaditya91@gmail.com> wrote:
>> PS: Don't have super user privileges on the target.
> Why can you not create a role on the target that is a member of every other
> role and thus can create and reassign delegated permissions and ownership
> to any of them. In short, a role that behaves as superuser within this
> limited context even if they are not a true superuser.
That's going to be essential in any case if the restoring user is
to be able to successfully execute the ALTER OWNER commands in the
script. You can't give away ownership to a role you don't have
the privileges of.
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, dsaditya91@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: pg_restore -L reordering of the statements does not work
In-Reply-To: <2028815.1698544164@sss.pgh.pa.us>
* 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