Re: pg_restore -L reordering of the statements does not work

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Aditya D <dsaditya91(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_restore -L reordering of the statements does not work
Date: 2023-10-29 01:49:24
Message-ID: 2028815.1698544164@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> writes:
> On Sat, Oct 28, 2023, 18:37 Aditya D <dsaditya91(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Aditya D 2023-10-29 02:59:27 Re: pg_restore -L reordering of the statements does not work
Previous Message David G. Johnston 2023-10-29 01:41:05 Re: pg_restore -L reordering of the statements does not work