Re: pg_dump without data

From: Philip Hallstrom <postgresql(at)philip(dot)pjkh(dot)com>
To: Kenneth Gonsalves <lawgon(at)thenilgiris(dot)com>
Cc: PostgreSQL SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: pg_dump without data
Date: 2005-05-06 17:56:24
Message-ID: 20050506105546.U40081@wolf.pjkh.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> how do i get a dump of a postgresql database without the data?

% pg_dump --help
pg_dump dumps a database as a text file or to other formats.

Usage:
pg_dump [OPTION]... [DBNAME]

.....

-s, --schema-only dump only the schema, no data

....

-philip

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Scott Marlowe 2005-05-06 17:59:27 Re: pg_dump without data
Previous Message Joel Fradkin 2005-05-06 13:50:06 encoding