Mark Rostron <mrostron@ql2.com> writes:
> Is there some way to query the data-type of '<some value expression>'?
There's a SQL-standard construct called IS OF, and a function called
pg_typeof, but it's not real clear whether either of those would help
you.
regards, tom lane