From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types. |
Date: | 2015-08-11 03:17:32 |
Message-ID: | 55C9694C.1050504@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers pgsql-hackers |
On 08/10/2015 07:29 PM, Tom Lane wrote:
> I wrote:
>> Peter Eisentraut <peter_e(at)gmx(dot)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2015-08-11 10:47:17 | pgsql: Minor cleanups in slot related code. |
Previous Message | Tom Lane | 2015-08-11 00:10:39 | pgsql: Fix privilege dumping from servers too old to have that type of |
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2015-08-11 04:53:15 | max_connections and standby server |
Previous Message | Qingqing Zhou | 2015-08-11 01:11:07 | Re: fix oversight converting buf_id to Buffer |