Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJn9s-0000aD-KR for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 18:29:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJn9r-0008JE-RP for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 18:29:51 +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 1ZJn9r-0008Hm-4B for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 18:29:51 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZJn9m-0007Xw-DJ for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 18:29:50 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [186.37.80.48]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id F1560400A1E; Mon, 27 Jul 2015 11:29:42 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id E492E71E; Mon, 27 Jul 2015 20:04:50 +0200 (CEST) Date: Mon, 27 Jul 2015 15:04:50 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: Heikki Linnakangas , Tom Lane , bz@mailinator.com, PostgreSQL Bugs List Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text Message-ID: <20150727180450.GI5596@postgresql.org> References: <20150614155912.2732.93270@wrigleys.postgresql.org> <42501.1434389175@sss.pgh.pa.us> <598.1434425712@sss.pgh.pa.us> <55AE06AB.4090002@iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) 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 Fabien COELHO wrote: > After some tests, it seems that an upgrade script cannot be provided, > or I missed something. > > 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. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs