Re: [HACKERS] Enums patch v2

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Tom Dunstan <pgsql(at)tomd(dot)cc>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Enums patch v2
Date: 2006-12-20 14:49:32
Message-ID: 45894D7C.2000202@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-12-20 16:06:46 Re: [PATCHES] Load distributed checkpoint patch
Previous Message Jim Nasby 2006-12-20 14:47:38 Re: Interface for pg_autovacuum

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-12-20 16:06:46 Re: [PATCHES] Load distributed checkpoint patch
Previous Message Tom Lane 2006-12-20 14:46:30 Re: [HACKERS] Bundle of patches