pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: reina@nsi.edu
To: pgsql-admin@postgresql.org
Subject: Re: psql option for writing schema
Date: 3 Dec 2001 17:13:11 -0800
Message-ID: <f40d3195.0112031713.5eeb0b1e@posting.google.com> (raw)
References: <f40d3195.0111301052.7dea1016@posting.google.com>
	<9ubpl9$196u$1@news.tht.net>

missive@frontiernet.net (Lee Harr) wrote in message news:<9ubpl9$196u$1@news.tht.net>...
> On 30 Nov 2001 10:52:26 -0800, Tony Reina <reina@nsi.edu> wrote:
> > I seem to remember a psql option that dumped out the table schema. I
> > can't seem to find it in the man for psql. Could someone point out the
> > option to me?
> > 
> 
> In psql \? is your friend.
> 
> Probably what you want is \d tableName

No. I know that one.

I had thought it was a psql option, but what I wanted was actually a
pg_dump option called '--schema-only'.

pg_dump --schema-only db_name

Thanks for the help anyway.

-Tony



view thread (3+ messages)

Message-ID: <f40d3195.0112031713.5eeb0b1e@posting.google.com>
Permalink:  ../f40d3195.0112031713.5eeb0b1e@posting.google.com/
Also on:    postgresql.org/message-id/f40d3195.0112031713.5eeb0b1e@posting.google.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: reina@nsi.edu
  Subject: Re: psql option for writing schema
  In-Reply-To: <f40d3195.0112031713.5eeb0b1e@posting.google.com>
  References: <f40d3195.0111301052.7dea1016@posting.google.com> <9ubpl9$196u$1@news.tht.net> <f40d3195.0112031713.5eeb0b1e@posting.google.com>

* 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