Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types. - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types.
Date
Msg-id 55C9694C.1050504@dunslane.net
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-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
>




pgsql-hackers by date:

Previous
From: Qingqing Zhou
Date:
Subject: Re: fix oversight converting buf_id to Buffer
Next
From: Tatsuo Ishii
Date:
Subject: max_connections and standby server