Re: [PERFORM] \d output to a file

Поиск
Список
Период
Сортировка
Искать
От
Gary Cowell
Тема
Re: [PERFORM] \d output to a file
Дата
Msg-id
e5305258041215071242b95d2d@mail.gmail.com
Ответ на
\d output to a file (sarlav kumar)
Список
Дерево обсуждения
\d output to a file sarlav kumar <sarlavk@yahoo.com>
Re: [despammed] \d output to a file Andreas Kretschmer <akretschmer@despammed.com>
Re: [despammed] \d output to a file Geoffrey <esoteric@3times25.net>
Re: [despammed] \d output to a file Kretschmer Andreas <andreas_kretschmer@despammed.com>
Re: [PERFORM] \d output to a file Grega Bremec <gregab@p0f.net>
Re: \d output to a file Geoffrey <esoteric@3times25.net>
Re: \d output to a file Tom Lane <tgl@sss.pgh.pa.us>
Re: [PERFORM] \d output to a file Ragnar Hafstað <gnari@simnet.is>
Re: \d output to a file Kretschmer Andreas <andreas_kretschmer@despammed.com>
Re: [PERFORM] \d output to a file Gary Cowell <gary.cowell@gmail.com>
On Wed, 15 Dec 2004 06:38:22 -0800 (PST), sarlav kumar
 wrote:
> Hi All, 
>   
> I would like to write the output of the \d command on all tables in a
> database to an output file. There are more than 200 tables in the database.
> I am aware of \o command to write the output to a file. But, it will be
> tough to do the \d for each table manually and write the output to a file.
> Is there a command/ way in which I can achieve this without having to do it
> for each table? 
> Any help in this regard would be really appreciated. 
>   
> Thanks, 
> Saranya
> 
> 

Try something like:

psql -c "\d *" >listing.txt
В списке pgsql-novice по дате отправления
От: Andrew Lazarus
Дата:
От: candra
Дата:
Сообщение: Postgresql
FAQ