Search Postgresql Archives

Re: How can I select a comment on a column?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux