From: Stephen Frost <sfrost@snowman.net>
To: Moshe Jacobson <moshe@neadwerx.com>
Cc: daniele.varrazzo@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension
Date: Thu, 12 Jan 2017 13:34:57 -0500
Message-ID: <20170112183457.GJ18360@tamriel.snowman.net> (raw)
In-Reply-To: <CAJ4CxLmGST-UkYzhrS-QbXLoXeYnZPPO7m7b9U=2RRr-cTArHQ@mail.gmail.com>
References: <20161208191642.1407.30751@wrigleys.postgresql.org>
<20161208192933.GG23417@tamriel.snowman.net>
<CAJ4CxLmGST-UkYzhrS-QbXLoXeYnZPPO7m7b9U=2RRr-cTArHQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Greetings,
* Moshe Jacobson (moshe@neadwerx.com) wrote:
> My extension dynamically creates extension-owned tables and puts ACLs on
> them.
Ok, in 9.6, we should realize that your extension changed the ACLs for
those tables.
> When the database is dumped, it includes grants/revokes for those tables,
> which will not exist when the extension is re-installed.
When the database is dumped, it should include a CREATE EXTENSION
command. It also shouldn't include GRANTs/REVOKEs unless the user
changed the permissions on the extension's tables from what they were
set to when the extension was installed.
> As a result, when the database is restored, I keep getting warnings because
> it's trying to apply ACLs to tables that don't exist.
>
> Is there a way around this issue?
A self-contained test case against 9.6 which shows the issue you're
having would really be the best way to help us.
If the issue is that you're working on a pre-9.6 version of PG, then I'm
afraid you'll need to upgrade or live with the warnings.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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: sfrost@snowman.net, moshe@neadwerx.com, daniele.varrazzo@gmail.com
Subject: Re: BUG #14456: pg_dump doesn't restore permissions on tables belonging to an extension
In-Reply-To: <20170112183457.GJ18360@tamriel.snowman.net>
References: <20161208191642.1407.30751@wrigleys.postgresql.org> <20161208192933.GG23417@tamriel.snowman.net> <CAJ4CxLmGST-UkYzhrS-QbXLoXeYnZPPO7m7b9U=2RRr-cTArHQ@mail.gmail.com> <20170112183457.GJ18360@tamriel.snowman.net>
* 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