pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ragnar Hafstaư <gnari@simnet.is>
To: sarlav kumar <sarlavk@yahoo.com>
Cc: pgsqlnovice <pgsql-novice@postgresql.org>
Cc: pgsqlperform <pgsql-performance@postgresql.org>
Subject: Re: [PERFORM] \d output to a file
Date: Wed, 15 Dec 2004 18:23:43 +0000
Message-ID: <1103135023.4086.8.camel@localhost.localdomain> (raw)
In-Reply-To: <2441.1103129458@sss.pgh.pa.us>
References: <20041215143822.37534.qmail@web51304.mail.yahoo.com>
	<41C05576.7030703@3times25.net>
	<2441.1103129458@sss.pgh.pa.us>

On Wed, 2004-12-15 at 11:50 -0500, Tom Lane wrote:
> Geoffrey <esoteric@3times25.net> writes:
> > sarlav kumar wrote:
> >> I would like to write the output of the \d command on all tables in a
> >> database to an output file.
> 
> > What is the OS?  On any UNIX variant you can do:
> > echo '\d' | psql > outputfile
> 
> Or use \o:
> 
> regression=# \o zzz1
> regression=# \d
or:
            =# \d *
to get all tables as th OP wanted

> regression=# \o

gnari





view thread (10+ messages)

Message-ID: <1103135023.4086.8.camel@localhost.localdomain>
Permalink:  ../1103135023.4086.8.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1103135023.4086.8.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gnari@simnet.is, sarlavk@yahoo.com, pgsql-novice@postgresql.org
  Subject: Re: [PERFORM] \d output to a file
  In-Reply-To: <1103135023.4086.8.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox