Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJq61-0008Kh-Lj for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 21:38:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJq61-0003jr-7Z for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Jul 2015 21:38:05 +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 1ZJq5N-00022S-NA for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 21:37:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZJq5K-0002oA-M9 for pgsql-bugs@postgresql.org; Mon, 27 Jul 2015 21:37:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t6RLb1N5017092; Mon, 27 Jul 2015 17:37:01 -0400 From: Tom Lane To: Fabien COELHO cc: Alvaro Herrera , Heikki Linnakangas , bz@mailinator.com, PostgreSQL Bugs List Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text In-reply-to: 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> Comments: In-reply-to Fabien COELHO message dated "Mon, 27 Jul 2015 23:04:33 +0200" Date: Mon, 27 Jul 2015 17:37:01 -0400 Message-ID: <17091.1438033021@sss.pgh.pa.us> 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 Fabien COELHO writes: > The usual exit strategy is: > DROP TYPE isbn CASCADE; > Which works fine... but as a side effect silently remove ISBN columns that > may exist in user table. I do not think it is a good idea for an extension > update script to do that to a librarian:-) Certainly. > Bar any idea around this issue, I think that an extension upgrade script > is really unadvisable, and the user should do a dump data, drop extension, > create extension, restore data. AFAICS, that isn't exactly an improvement. You're telling the user "if you have an ISBN column, you're screwed, and we are going to make it as painful as it can possibly be to get out of that situation". I think we'd be better off trying to migrate to a situation where these type names all still exist but they all act like ISBN13. I'm not sure what the stages on that journey are. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs