Re: BUG #13442: ISBN doesn't always roundtrip with text

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, bz(at)mailinator(dot)com, PostgreSQL Bugs List <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13442: ISBN doesn't always roundtrip with text
Date: 2015-07-27 16:03:38
Message-ID: CAMkU=1xirYuVX1OAmoTqXuj_aZvcYKzKvfFOPoMQPh=cvZgUdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Jul 27, 2015 at 2:15 AM, Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr> 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!).
>

You can't test extension upgrade scripts by running the component
statements at the command line. You have to make an actual dummy upgrade
script and test it via "alter extension ... update ...". When executed in
that context, they are exempted from the rule you are running into. (Or
maybe there is another way that I don't know of).

But I wonder what will happen when you try to drop a type which is in use?

Cheers,

Jeff

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fabien COELHO 2015-07-27 16:59:06 Re: BUG #13442: ISBN doesn't always roundtrip with text
Previous Message manoj.itara 2015-07-27 11:15:25 BUG #13520: postgres not connecting with opnerp7.0