pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
psql option for writing schema
3+ messages / 2 participants
[nested] [flat]

* psql option for writing schema
@ 2001-11-30 18:52 Tony Reina <reina@nsi.edu>
  2001-12-01 23:38 ` Re: psql option for writing schema Lee Harr <missive@frontiernet.net>
  0 siblings, 1 reply; 3+ messages in thread

From: reina@nsi.edu @ 2001-11-30 18:52 UTC (permalink / raw)
  To: pgsql-admin

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?

Thanks.
-Tony



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql option for writing schema
  2001-11-30 18:52 psql option for writing schema Tony Reina <reina@nsi.edu>
@ 2001-12-01 23:38 ` Lee Harr <missive@frontiernet.net>
  2001-12-04 01:13   ` Re: psql option for writing schema Tony Reina <reina@nsi.edu>
  0 siblings, 1 reply; 3+ messages in thread

From: missive@frontiernet.net @ 2001-12-01 23:38 UTC (permalink / raw)
  To: pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: psql option for writing schema
  2001-11-30 18:52 psql option for writing schema Tony Reina <reina@nsi.edu>
  2001-12-01 23:38 ` Re: psql option for writing schema Lee Harr <missive@frontiernet.net>
@ 2001-12-04 01:13   ` Tony Reina <reina@nsi.edu>
  0 siblings, 0 replies; 3+ messages in thread

From: reina@nsi.edu @ 2001-12-04 01:13 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-12-04 01:13 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-11-30 18:52 psql option for writing schema Tony Reina <reina@nsi.edu>
2001-12-01 23:38 ` Lee Harr <missive@frontiernet.net>
2001-12-04 01:13   ` Tony Reina <reina@nsi.edu>

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