Re: [PATCHES] Enums patch v2 - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [PATCHES] Enums patch v2
Date
Msg-id 45894D7C.2000202@dunslane.net
Whole thread Raw
In response to Re: [PATCHES] Enums patch v2  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
Martijn van Oosterhout wrote:
> Also, it's not just I/O functions that are the issue, consider the
> enum-to-integer cast.
>


er, what cast? :-)

IIRC Tom hasn't provided one. If you don't break the enum abstraction
there should be no need for one, and given the implementation it's not
quite trivial - probably the best way if this is needed would be to
precalculate it at type creation time and store the value in an extra
column in pg_enum.

cheers

andrew

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [PATCHES] Bundle of patches
Next
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Load distributed checkpoint patch