Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJnFF-0000ru-T8 for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 18:35:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJnFF-0005Sc-A7 for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 18:35:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZJnEc-0004gW-OE for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 18:34:46 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZJnEZ-0007e9-Of for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 18:34:46 +0000 Received: from cri.ensmp.fr (21.168.138.88.rev.sfr.net [88.138.168.21]) (authenticated bits=0) by boipeva.ensmp.fr (8.15.1/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id t6RIYUl1005628 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 27 Jul 2015 20:34:31 +0200 Date: Mon, 27 Jul 2015 20:34:29 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Alvaro Herrera cc: Heikki Linnakangas , Tom Lane , bz@mailinator.com, PostgreSQL Bugs List Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text In-Reply-To: <20150727180450.GI5596@postgresql.org> Message-ID: References: <20150614155912.2732.93270@wrigleys.postgresql.org> <42501.1434389175@sss.pgh.pa.us> <598.1434425712@sss.pgh.pa.us> <55AE06AB.4090002@iki.fi> <20150727180450.GI5596@postgresql.org> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at boipeva.ensmp.fr with ID 55B679B6.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 55B679B6.000 from 21.168.138.88.rev.sfr.net/21.168.138.88.rev.sfr.net/88.138.168.21/cri.ensmp.fr/ X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org >> Basically version 1.0 was confusing ISBN & ISBN13, and for upgrading the >> ISBN type definition must be modified. However, there is no such thing as >> ALTER TYPE, and trying DROP TYPE/ALTER TYPE is rejected because the type >> belongs to an extension (hey I know that, this is what is being done!). > > If I understand this correctly, you need to ALTER EXTENSION .. DROP > (which removes the type from the extension), then drop the type, create > it fresh, then ALTER EXTENSION ADD to put it back. Ok, so the upgrade script must do that manually, that is what I was missing. I'll try that. Thanks. -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs