Re: Dump & restore in directory format and permissions are largely lost?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Dump & restore in directory format and permissions are largely lost?
Date: 2021-06-16 01:19:17
Message-ID: 591499.1623806357@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <wells(dot)oliver(at)gmail(dot)com> writes:
> Yes. The target and source servers have the same users and roles, which is
> why their permissions being absent from the same objects on the target
> where they exist in the source is very confusing to me.

Did you look for errors in the log output of both pg_dump and pg_restore?

> I also do a pg_restore -l -Fd on the dump file, and I don't see any GRANT
> or REVOKE statements: should I expect that?

They'd show up in "-l" output as ACL items.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2021-06-16 01:23:03 Re: Dump & restore in directory format and permissions are largely lost?
Previous Message Wells Oliver 2021-06-16 01:09:21 Re: Dump & restore in directory format and permissions are largely lost?