Re: [PERFORM] \d output to a file - Mailing list pgsql-novice

From Gary Cowell
Subject Re: [PERFORM] \d output to a file
Date
Msg-id e5305258041215071242b95d2d@mail.gmail.com
Whole thread Raw
In response to \d output to a file  (sarlav kumar <sarlavk@yahoo.com>)
List pgsql-novice
On Wed, 15 Dec 2004 06:38:22 -0800 (PST), sarlav kumar
<sarlavk@yahoo.com> 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 by date:

Previous
From: Andrew Lazarus
Date:
Subject: Re: [PERFORM] Query Optimization
Next
From: "candra"
Date:
Subject: Postgresql