Re: Extract table columns in tabular form - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: Extract table columns in tabular form
Date
Msg-id 20051105180026.GA10871@webserv.wug-glas.de
Whole thread Raw
In response to Extract table columns in tabular form  (frank church <pgsql@adontendev.net>)
List pgsql-sql
am  05.11.2005, um 16:47:56 +0000 mailte frank church folgendes:
> 
> How do you extract postgresql column names, types and comments in tabular form,
> using an SQL command?. I know they are stored in one of the system tables, but
> I don't know which.

Start psql with -E and call \d* - commands to see both the hidden SQL
and the description.

Example:

comment on table foo is 'this is a comment';
\dd foo
[many lines of output the SQL and the comment]


Use '\h?' to see all psql-commands.


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net===    Schollglas Unternehmensgruppe    === 


pgsql-sql by date:

Previous
From: frank church
Date:
Subject: Extract table columns in tabular form
Next
From: Christopher Browne
Date:
Subject: Re: Extract table columns in tabular form