Re: pg_upgrade issues - Mailing list pgsql-bugs

From Robert Haas
Subject Re: pg_upgrade issues
Date
Msg-id AANLkTikODfHu-QcK7=m5GGo_NFy8CX_aTGUhoPMJwBm+@mail.gmail.com
Whole thread Raw
In response to Re: pg_upgrade issues  (Bruce Momjian <bruce@momjian.us>)
Responses Re: pg_upgrade issues  (Bruce Momjian <bruce@momjian.us>)
List pgsql-bugs
On Sat, Jul 24, 2010 at 11:37 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> I am inclined to prevent pg_upgrade from migrating any database that
>> uses any of these reg* data types, and document this restriction. =A0I
>> probably could allow regtype because that pg_type is preserved.
>
> I have applied the attached patch to CVS HEAD and 9.0 that prevent
> migration when any reg* data type is used in a user table (except
> regtype because pg_type.oid is preserved).

This is a good change; however, there is still some potential for
lossage here.  What if the column were declared as type OID?  Then it
would be hard to tell whether migration was safe or not.  Perhaps the
right long-term solution is to try harder to preserve OIDs in more
cases.

--=20
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_upgrade issues
Next
From: "mile"
Date:
Subject: BUG #5571: global hash %_SHARED is not declared as global in the new version