Hi, > It is not as elegant as you would like, but maybe one idea > is to create your own alias of the built in type so you can > determine the answer just by looking at the column type. For > example, instead of using "int" in CREATE TYPE above, create > a your own type equivalent to an integer. Thanks for the suggestion. Yes, that should work, but it really is a very cumbersome and brittle solution. Cheers, Dario -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general