Skip site navigation (1) Skip section navigation (2)

\d output to a file

From: sarlav kumar <sarlavk(at)yahoo(dot)com>
To: pgsqlnovice <pgsql-novice(at)postgresql(dot)org>,pgsqlperform <pgsql-performance(at)postgresql(dot)org>
Subject: \d output to a file
Date: 2004-12-15 14:38:22
Message-ID: 20041215143822.37534.qmail@web51304.mail.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-novicepgsql-performance
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

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Responses

pgsql-novice by date

Next:From: Andreas KretschmerDate: 2004-12-15 15:04:08
Subject: Re: [despammed] \d output to a file
Previous:From: Kjetil HaalandDate: 2004-12-15 14:03:18
Subject: Re: function returning a row

pgsql-performance by date

Next:From: Andreas KretschmerDate: 2004-12-15 15:04:08
Subject: Re: [despammed] \d output to a file
Previous:From: Stacy WhiteDate: 2004-12-15 06:09:12
Subject: Re: Partitioned table performance

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group