Re: query column def
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Harvey <pharvey@codebydesign.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2001-08-21T19:22:59Z
Lists: pgsql-hackers
Peter Harvey <pharvey@codebydesign.com> writes: > Is this information availible somewhere in the catalog tables? Yes, in the atttypmod column of pg_attribute. I'd recommend looking at psql's \d commands (describe.c), or at pg_dump, to see the approved way to retrieve catalog info. Those are kept up to date pretty faithfully, whereas other interfaces aren't necessarily. (Feel free to submit a patch to fix ODBC...) regards, tom lane