Re: Altering array(composite-types) without breaking code when inserting them and similar questions - Mailing list pgsql-general

From Merlin Moncure
Subject Re: Altering array(composite-types) without breaking code when inserting them and similar questions
Date
Msg-id CAHyXU0y0ABYbve7q=PwE0uTsfN_fYA7y_cyU-brbrrKy_4QvJA@mail.gmail.com
Whole thread Raw
In response to Re: Altering array(composite-types) without breaking code when inserting them and similar questions  (Dorian Hoxha <dorian.hoxha@gmail.com>)
List pgsql-general
On Tue, Apr 29, 2014 at 2:40 PM, Dorian Hoxha <dorian.hoxha@gmail.com> wrote:
> So :
>
> drop function
> alter type: add column
> create again function with new default argument in a transaction ?

Yeah -- something like that.  Try it out (carefully).  AIUI, In most
cases the function execution will be inlined so the performance hit
should be minimal vs raw insert.

merlin


pgsql-general by date:

Previous
From: Jeff Johnston
Date:
Subject: Re: Ingres to Postgres migration
Next
From: Andy Colson
Date:
Subject: Re: Ingres to Postgres migration