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