On 2/6/25 22:32, Paul Foerster wrote:
Hi Adrian,
On 6 Feb 2025, at 17:31, Adrian Klaver <adrian.klaver@xxxxxxxxxxx> wrote:
1) Log into postgres database and do:
a) DROP DATABASE mydb;
b) CREATE DATABASE mydb <options>;
2) pg_restore -d mydb mydb.dump.gz
With create database <options> being "template template0", this is what my script does. But I need the -cC options for pg_restore to get ACLs back. Leaving out either one of them will not get me the ACLs back.
That does not make sense.
Are there ACLs(privileges) in the database at all?
What is the pg_dump command you are running?
Cheers
Paul
--
Adrian Klaver
adrian.klaver@xxxxxxxxxxx