From: Tom Lane <tgl@sss.pgh.pa.us>
To: fujimoto@ceptord.net
Cc: pgsql-bugs@postgresql.org, Stephen Frost <sfrost@snowman.net>
Subject: Re: BUG #14788: `pg_restore -c` won't restore schema access privileges.
Date: Thu, 24 Aug 2017 10:18:35 -0400
Message-ID: <11976.1503584315@sss.pgh.pa.us> (raw)
In-Reply-To: <20170821104439.1455.12525@wrigleys.postgresql.org>
References: <20170821104439.1455.12525@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
fujimoto@ceptord.net writes:
> [ dump to archive, then pg_restore with -c option ]
> Now all the access privileges on the public schema are gone:
I can confirm this is broken in HEAD: "pg_dump -c test >test.out"
produces a script including "GRANT ALL ON SCHEMA public TO PUBLIC",
but "pg_dump -Fc test >test.dump; pg_restore -c test.dump" produces
a script lacking that.
Stephen attempted to fix this in 330b84d8c, but the fix was evidently done
incorrectly. There should never be any difference between the results of
these two procedures. I've not studied 330b84d8c, but my strong suspicion
is that the logic was added to the wrong place in pg_dump.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, fujimoto@ceptord.net, sfrost@snowman.net
Subject: Re: BUG #14788: `pg_restore -c` won't restore schema access privileges.
In-Reply-To: <11976.1503584315@sss.pgh.pa.us>
References: <20170821104439.1455.12525@wrigleys.postgresql.org> <11976.1503584315@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