From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org, Andrew Dunstan <andrew(at)dunslane(dot)net>, Jeff <threshar(at)threshar(dot)is-a-geek(dot)com> |
Subject: | Re: Re: [Pg-migrator-general] Composite types break pg_migrated tables |
Date: | 2009-08-07 20:16:54 |
Message-ID: | 200908072016.n77KGsP20677@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > Peter Eisentraut wrote:
> >> That might be a bit excessive. As I understand it, arrays of built-in types
> >> (e.g., int[]) should work fine. I suspect the majority of uses of arrays will
> >> be with built-in types, so allowing that would help a significant portion of
> >> installations.
>
> > Agreed. I realized that last night, and have modified pg_migrator to
> > test FirstNormalObjectId.
>
> That's really the wrong thing. It's safe to assume OIDs below 10000
> are portable across versions, because for them not to be would require
> someone to have changed a hand assignment. However, OIDs between 10000
> and 16K are assigned on-the-fly by initdb, and those are *not* likely
> to be portable across versions. As an example, the rowtype for
> pg_statistic has slightly different OIDs in 8.3 and 8.4. So if you
> allow someone to port a database that is using a system catalog's
> rowtype, it will fail. Admittedly that's not a real likely scenario,
> but if you're going to have a check it should be accurate.
Thanks, I changed FirstNormalObjectId to FirstBootstrapObjectId for the
array/enum/composite oid test, and added a C comment about it.
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2009-08-07 20:22:06 | Re: Review: Revise parallel pg_restore's scheduling heuristic |
Previous Message | Bruce Momjian | 2009-08-07 20:07:08 | Re: Alpha releases: How to tag |