Re: "anyelement2" pseudotype - Mailing list pgsql-hackers

From Tom Lane
Subject Re: "anyelement2" pseudotype
Date
Msg-id 24076.1171469382@sss.pgh.pa.us
Whole thread Raw
In response to Re: "anyelement2" pseudotype  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: "anyelement2" pseudotype  (Andrew Dunstan <andrew@dunslane.net>)
Re: "anyelement2" pseudotype  (Tom Dunstan <pgsql@tomd.cc>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> ANYENUM?  What's the use-case for that?

> Well ... *somebody* suggested it here ... 
> http://archives.postgresql.org/pgsql-hackers/2005-11/msg00457.php

Well, in that usage (ie, for enum I/O functions) it's not actually
necessary that the type system as a whole understand ANYENUM as
"something that any enum type can be cast to", because you're going to
hot-wire the pg_type entries during CREATE ENUM anyway.  What I'm
wondering is if there's a use-case for it during ordinary user
operations with enums.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Florian G. Pflug"
Date:
Subject: Re: Writing triggers in C++
Next
From: Heikki Linnakangas
Date:
Subject: Re: HOT WIP Patch - version 1