From: Karel Zak <zakkr@zf.jcu.cz>
To: Chris Ruprecht <chrup999@yahoo.com>
Cc: p-admin <pgsql-admin@postgresql.org>
Subject: Re: Dump Schema?
Date: Fri, 27 Jul 2001 16:18:41 +0200
Message-ID: <20010727161841.A5504@ara.zf.jcu.cz> (raw)
In-Reply-To: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com>
References: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com>
On Fri, Jul 27, 2001 at 08:55:05AM -0500, Chris Ruprecht wrote:
> Hi guys,
>
> I have a database on my production machine and I want a copy of this db (9 GB) - without the data - on a development machine (notebook with about 6 GB of space).
> How can I just dump the schema without the data? Is there a simple command for that?
>
pg_dump
-s, --schema-only dump out only the schema, no data
Something is bad on docs or pg_dump --help? :-)
Karel
--
Karel Zak <zakkr@zf.jcu.cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
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: zakkr@zf.jcu.cz, chrup999@yahoo.com
Subject: Re: Dump Schema?
In-Reply-To: <20010727161841.A5504@ara.zf.jcu.cz>
References: <004b01c116a3$bd7c3a00$5dd26383@corp.compucom.com> <20010727161841.A5504@ara.zf.jcu.cz>
* 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