Re: enum types and binary queries - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: enum types and binary queries
Date
Msg-id 873axz221g.fsf@oxford.xeocode.com
Whole thread Raw
In response to Re: enum types and binary queries  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: enum types and binary queries  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: enum types and binary queries  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
"Alvaro Herrera" <alvherre@commandprompt.com> writes:

> Gregory Stark escribió:
>
>> I think it would be ok only if a pg_dump/pg_restore reliably restored the same
>> oid->enum value mapping. Otherwise a binary dump is useless. But as I
>> understand it that's the case currently, is it?

er, lost a "not" in the editing of that, sorry.

> That doesn't work if the dump is restored on a database that already has
> those OIDs used for another enum.  The easy workaround would be to
> "rewrite" the data to use the new OID, but believe me, you don't want to
> go down that route, lest madness await you at the end.

enum OIDs are unique across enums? This seems like a strange way to do it. I
recall conversations about this a while back though and there were limitations
of the type system that led to this, right?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: enum types and binary queries
Next
From: Tom Lane
Date:
Subject: Re: enum types and binary queries