From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Extract table columns in tabular form |
Date: | 2005-11-05 18:00:26 |
Message-ID: | 20051105180026.GA10871@webserv.wug-glas.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 ===
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Browne | 2005-11-05 18:14:12 | Re: Extract table columns in tabular form |
Previous Message | frank church | 2005-11-05 16:47:56 | Extract table columns in tabular form |