Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP05j-0004jW-A4 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Aug 2015 03:19:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZP05i-0006kK-Rj for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Aug 2015 03:19:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZP04R-0004bI-D6 for pgsql-hackers@postgreSQL.org; Tue, 11 Aug 2015 03:17:47 +0000 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZP04K-0006U6-0c for pgsql-hackers@postgreSQL.org; Tue, 11 Aug 2015 03:17:45 +0000 Received: from mfilter43-d.gandi.net (mfilter43-d.gandi.net [217.70.178.174]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E8DFCA80B1; Tue, 11 Aug 2015 05:17:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter43-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter43-d.gandi.net (mfilter43-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PHM4EBVpHPUk; Tue, 11 Aug 2015 05:17:34 +0200 (CEST) X-Originating-IP: 98.122.164.227 Received: from [192.168.10.146] (unknown [98.122.164.227]) (Authenticated sender: adsend@dunslane.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id CD7E9A80AF; Tue, 11 Aug 2015 05:17:33 +0200 (CEST) Subject: Re: [COMMITTERS] pgsql: Fix pg_dump to dump shell types. To: Tom Lane , Peter Eisentraut References: <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> Cc: pgsql-hackers@postgreSQL.org From: Andrew Dunstan Message-ID: <55C9694C.1050504@dunslane.net> Date: Mon, 10 Aug 2015 23:17:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <18555.1439249344@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 08/10/2015 07:29 PM, Tom Lane wrote: > I wrote: >> Peter Eisentraut 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