Re: How can I select a comment on a column? - Mailing list pgsql-general

From Michael Fuhr
Subject Re: How can I select a comment on a column?
Date
Msg-id 20070327041009.GB96360@winnie.fuhr.org
Whole thread Raw
In response to How can I select a comment on a column?  (Serguei Pronkine <pronkine@krikri.de>)
List pgsql-general
On Mon, Mar 26, 2007 at 04:37:59PM +0200, Serguei Pronkine wrote:
> How can I now retrieve column number from column name?

Query pg_attribute.

http://www.postgresql.org/docs/8.2/interactive/catalog-pg-attribute.html

Since psql can display object comments you could study the SQL that
it executes:

\set ECHO_HIDDEN
\d+ mytab

--
Michael Fuhr

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: ERROR: out of shared memory
Next
From: Tom Lane
Date:
Subject: Re: Could not create relation: File exists error