Re: query column def

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Harvey <pharvey(at)codebydesign(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: query column def
Date: 2001-08-21 19:22:59
Message-ID: 10214.998421779@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Harvey <pharvey(at)codebydesign(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-08-21 19:34:34 Re: List response time...
Previous Message Peter Harvey 2001-08-21 18:49:54 query column def