Mark Rostron <mrostron(at)ql2(dot)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