From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ray Stell <stellr@cns.vt.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_dump --clean or dropdb?
Date: Thu, 21 Feb 2008 14:50:07 -0500
Message-ID: <14924.1203623407@sss.pgh.pa.us> (raw)
In-Reply-To: <20080221183939.GA31300@cns.vt.edu>
References: <20080221183939.GA31300@cns.vt.edu>
Ray Stell <stellr@cns.vt.edu> writes:
> The doc for pg_dump --clean says it will drop db objects, not the db,
> however it looks like it does, though the output order of events is
> troubling. Is there a loop in the create/drop area?.
"strings" is not the way to find out what will be emitted by pg_restore.
(Hint: there are commands in the dump archive that may or may not be
used by pg_restore.) Use a plain pg_dump command, or equivalently look
at pg_restore's output script.
regards, tom lane
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, stellr@cns.vt.edu
Subject: Re: pg_dump --clean or dropdb?
In-Reply-To: <14924.1203623407@sss.pgh.pa.us>
* 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