pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_dump without data
3+ messages / 3 participants
[nested] [flat]

* pg_dump without data
@ 2005-05-06 09:14  Kenneth Gonsalves <lawgon@thenilgiris.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Kenneth Gonsalves @ 2005-05-06 09:14 UTC (permalink / raw)
  To: pgsql-sql

how do i get a dump of a postgresql database without the data?
-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.sourceforge.net
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!


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

* Re: pg_dump without data
@ 2005-05-06 17:56  Philip Hallstrom <postgresql@philip.pjkh.com>
  parent: Kenneth Gonsalves <lawgon@thenilgiris.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Philip Hallstrom @ 2005-05-06 17:56 UTC (permalink / raw)
  To: Kenneth Gonsalves <lawgon@thenilgiris.com>; +Cc: 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



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

* Re: pg_dump without data
@ 2005-05-06 17:59  Scott Marlowe <smarlowe@g2switchworks.com>
  parent: Kenneth Gonsalves <lawgon@thenilgiris.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Scott Marlowe @ 2005-05-06 17:59 UTC (permalink / raw)
  To: Kenneth Gonsalves <lawgon@thenilgiris.com>; +Cc: pgsql-sql

On Fri, 2005-05-06 at 04:14, Kenneth Gonsalves wrote:
> how do i get a dump of a postgresql database without the data?

pg_dump -s for the schema

pg_dumpall -g for the globals, like usernames and all.



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


end of thread, other threads:[~2005-05-06 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-06 09:14 pg_dump without data Kenneth Gonsalves <lawgon@thenilgiris.com>
2005-05-06 17:56 ` Philip Hallstrom <postgresql@philip.pjkh.com>
2005-05-06 17:59 ` Scott Marlowe <smarlowe@g2switchworks.com>

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