pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: bz@mailinator.com, PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
Date: Mon, 27 Jul 2015 17:37:01 -0400
Message-ID: <17091.1438033021@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.10.1507272252090.3538@sto>
References: <20150614155912.2732.93270@wrigleys.postgresql.org>
	<42501.1434389175@sss.pgh.pa.us>
	<alpine.DEB.2.10.1506152026520.26470@sto>
	<598.1434425712@sss.pgh.pa.us>
	<alpine.DEB.2.10.1506160728030.26470@sto>
	<alpine.DEB.2.10.1506200900060.31742@sto>
	<55AE06AB.4090002@iki.fi>
	<alpine.DEB.2.10.1507271115030.3538@sto>
	<20150727180450.GI5596@postgresql.org>
	<alpine.DEB.2.10.1507272252090.3538@sto>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Fabien COELHO <coelho@cri.ensmp.fr> 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



view thread (26+ messages)  latest in thread

Message-ID: <17091.1438033021@sss.pgh.pa.us>
Permalink:  ../17091.1438033021@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17091.1438033021@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr, alvherre@2ndquadrant.com, hlinnaka@iki.fi
  Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
  In-Reply-To: <17091.1438033021@sss.pgh.pa.us>
  References: <20150614155912.2732.93270@wrigleys.postgresql.org> <42501.1434389175@sss.pgh.pa.us> <alpine.DEB.2.10.1506152026520.26470@sto> <598.1434425712@sss.pgh.pa.us> <alpine.DEB.2.10.1506160728030.26470@sto> <alpine.DEB.2.10.1506200900060.31742@sto> <55AE06AB.4090002@iki.fi> <alpine.DEB.2.10.1507271115030.3538@sto> <20150727180450.GI5596@postgresql.org> <alpine.DEB.2.10.1507272252090.3538@sto> <17091.1438033021@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox