Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

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

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group