Re: pg_upgrade (was: 8.2 features status)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Gregory Stark <gsstark(at)mit(dot)edu>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_upgrade (was: 8.2 features status)
Date: 2006-08-07 12:37:14
Message-ID: 19464.1154954234@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Martijn van Oosterhout <kleptog(at)svana(dot)org> writes:
> [ concerning handling a change in a single datatype's representation ]

> 1. Under old system, munge the system catalog to add code for new inet
> type with new OID. Probably needs a shared lib (if you could create
> type input/output function with pl/pgsql it would help here).
> 2. Execute ALTER COLUMN TYPE USING to switch to the new type.
> 3. Shutdown old server
> 4. Complete catalog changes
> 5. Startup new version

Probably easier and more flexible just to include both versions of the
datatype in the new release, and tell people they'd better ALTER COLUMN
TYPE sometime before updating to release N+2.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message andrew 2006-08-07 12:37:18 Re: proposal for 8.3: Simultaneous assignment for
Previous Message Tom Lane 2006-08-07 12:30:54 Re: proposal for PL packages for 8.3.