Tom Lane wrote:
> As for actually adding it, grep for all references to ANYELEMENT and add
> code accordingly; shouldn't be that hard. Note you'd need to add an
> anyarray2 at the same time for things to keep working sanely.
The enum patch [1] does exactly this with an ANYENUM pseudo-type. It
should provide a pretty good overview of what will be required.
Cheers
Tom
[1] http://archives.postgresql.org/pgsql-patches/2007-02/msg00239.php