pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philip Hallstrom <postgresql@philip.pjkh.com>
To: Kenneth Gonsalves <lawgon@thenilgiris.com>
Cc: PostgreSQL SQL <pgsql-sql@postgresql.org>
Subject: Re: pg_dump without data
Date: Fri, 6 May 2005 10:56:24 -0700 (PDT)
Message-ID: <20050506105546.U40081@wolf.pjkh.com> (raw)
In-Reply-To: <200505061444.29591.lawgon@thenilgiris.com>
References: <200505061444.29591.lawgon@thenilgiris.com>

> 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



view thread (3+ messages)  latest in thread

Message-ID: <20050506105546.U40081@wolf.pjkh.com>
Permalink:  ../20050506105546.U40081@wolf.pjkh.com/
Also on:    postgresql.org/message-id/20050506105546.U40081@wolf.pjkh.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: postgresql@philip.pjkh.com, lawgon@thenilgiris.com
  Subject: Re: pg_dump without data
  In-Reply-To: <20050506105546.U40081@wolf.pjkh.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