pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Feike Steenbergen <feikesteenbergen@gmail.com>
Cc: Reinier Haasjes <Reinier.Haasjes@adyen.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: [pg_dump] not dumping some default privileges
Date: Mon, 23 Oct 2017 16:03:57 +0200
Message-ID: <20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql> (raw)
In-Reply-To: <CAK_s-G1qTz2PZV9J+mVPGtcmO-ANhzwOdhxB-sBtCfrps_7j+Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Feike Steenbergen wrote:
> On 23 October 2017 at 14:54, Alvaro Herrera <alvherre@2ndquadrant.com>
> wrote:
> >
> > Reinier Haasjes wrote:
> > > Hi,
> > >
> > > I noticed that pg_dump since 9.6 is missing some default privileges
> > Hmm, I can confirm that 9.6 seems to have this problem while 9.5 does
> > not seem to have it.  Must have been broken at some point during the
> > extensive pg_dump patches in 9.6 ...  I'll give this a look.
> 
> in buildACLQueries there is a filter to exclude those acl's that match the
> pg_init_privs or default pg_catalog.acldefault for that role.

Ah, thanks, Feike.

So what is going on is that those commands don't actually have any
visible effect in pg_dump because they change the privileges from the
default state to a state that's identical to the default.  I suppose
that makes sense.

However, I don't think Reinier would have gone to the trouble of
reporting the problem unless there was something actually being affected
by it.  Am I mistaken?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql>
Permalink:  ../20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql/
Also on:    postgresql.org/message-id/20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql

 · 

reply

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: alvherre@2ndquadrant.com, feikesteenbergen@gmail.com, Reinier.Haasjes@adyen.com
  Subject: Re: [pg_dump] not dumping some default privileges
  In-Reply-To: <20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql>
  References: <CAK_s-G1qTz2PZV9J+mVPGtcmO-ANhzwOdhxB-sBtCfrps_7j+Q@mail.gmail.com> <20171023140357.6rufr5o7wnjmbew6@alvherre.pgsql>

* 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