From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types.
Date: Mon, 10 Aug 2015 23:17:32 -0400
Message-ID: <55C9694C.1050504@dunslane.net> (raw)
In-Reply-To: <18555.1439249344@sss.pgh.pa.us>
References: <E1ZMljD-0006bX-Fi@gemulon.postgresql.org>
<55C7CF3B.30703@dunslane.net>
<20081.1439158993@sss.pgh.pa.us>
<55C902E8.2010400@gmx.net>
<8191.1439239231@sss.pgh.pa.us>
<18555.1439249344@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
On 08/10/2015 07:29 PM, Tom Lane wrote:
> I wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> This was probably just copied from how proacl and lanacl are handled,
>>> which predate typacl by quite a bit. Maybe there was a reason in those
>>> days.
>> Hm ... I wonder whether those are well-thought-out either.
> They're not. Testing with ancient servers shows that we dump very silly
> grant/revoke state for functions and languages as well, if the source
> server is too old to have proacl or lanacl (ie, pre-7.3). As with typacl,
> the silliness is accidentally masked as long as the owner doesn't do
> something like revoke the privileges granted to PUBLIC.
>
> Things work far more sanely with the attached patch, to wit we just leave
> all object privileges as default if dumping from a version too old to have
> privileges on that type of object. I think we should back-patch this into
> all supported branches; it's considerably more likely that older branches
> would be used to dump from ancient servers.
>
>
FYI this has fixed the problem that was encountered in cross-version
upgrade testing.
cheers
andrew
>
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-committers@postgresql.org
Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, peter_e@gmx.net, pgsql-hackers@postgreSQL.org
Subject: Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types.
In-Reply-To: <55C9694C.1050504@dunslane.net>
References: <E1ZMljD-0006bX-Fi@gemulon.postgresql.org> <55C7CF3B.30703@dunslane.net> <20081.1439158993@sss.pgh.pa.us> <55C902E8.2010400@gmx.net> <8191.1439239231@sss.pgh.pa.us> <18555.1439249344@sss.pgh.pa.us> <55C9694C.1050504@dunslane.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