Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOYlS-0007yT-TN for pgsql-committers@arkaria.postgresql.org; Sun, 09 Aug 2015 22:08:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOYlR-000104-4p for pgsql-committers@arkaria.postgresql.org; Sun, 09 Aug 2015 22:08:21 +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 1ZOYlF-0000mj-2S for pgsql-committers@postgresql.org; Sun, 09 Aug 2015 22:08:09 +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 1ZOYl7-0006VQ-Kx for pgsql-committers@postgresql.org; Sun, 09 Aug 2015 22:08:07 +0000 Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 1AC42A80AC; Mon, 10 Aug 2015 00:07:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Received: from relay3-d.mail.gandi.net ([IPv6:::ffff:217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 1Kye0mLY_GKE; Mon, 10 Aug 2015 00:07:57 +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 373CCA80AA; Mon, 10 Aug 2015 00:07:56 +0200 (CEST) Subject: Re: pgsql: Fix pg_dump to dump shell types. To: Tom Lane , pgsql-committers@postgresql.org References: From: Andrew Dunstan Message-ID: <55C7CF3B.30703@dunslane.net> Date: Sun, 9 Aug 2015 18:07:55 -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: Content-Type: text/plain; charset=utf-8; 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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 08/04/2015 07:34 PM, Tom Lane wrote: > Fix pg_dump to dump shell types. > > Per discussion, it really ought to do this. The original choice to > exclude shell types was probably made in the dark ages before we made > it harder to accidentally create shell types; but that was in 7.3. > > Also, cause the standard regression tests to leave a shell type behind, > for convenience in testing the case in pg_dump and pg_upgrade. > > Back-patch to all supported branches. > > Still not quite there. If either 9.0 or 9.1 is upgraded to 9.2 or later, they fail like this: pg_restore: creating TYPE "public"."myshell" pg_restore: setting owner and privileges for TYPE "public"."myshell" pg_restore: setting owner and privileges for ACL "public"."myshell" pg_restore: [archiver (db)] Error from TOC entry 4293; 0 0 ACL myshell buildfarm pg_restore: [archiver (db)] could not execute query: ERROR: type "myshell" is only a shell Command was: REVOKE ALL ON TYPE "myshell" FROM PUBLIC; REVOKE ALL ON TYPE "myshell" FROM "buildfarm"; GRANT ALL ON TYPE "myshell" TO PUBL... We could just declare that we don't support this for versions older than 9.2, in which case I would just remove the type from the test database before testing cross-version upgrade. But if it's easily fixed then let's do it. cheers andrew -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers