pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: Allan Engelhardt <allane@cybaea.com>
Cc: Philip Warner <pjw@rhyme.com.au>
Cc: pgsql-admin@postgresql.org
Subject: Re: [repost] pg_restore doesn't work with custom format?
Date: Tue, 23 Oct 2001 18:18:30 -0400
Message-ID: <15591.1003875510@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.21.0110191740220.34111-100000@megazone23.bigpanda.com>
References: <Pine.BSF.4.21.0110191740220.34111-100000@megazone23.bigpanda.com>

> On Fri, 19 Oct 2001, Tom Lane wrote:
>> 1. Target database is named by -d switch, else default to dbname
>> from dump file.

After further looking at this, I've decided that the existing behavior
of pg_dump and pg_restore is actually reasonable, it's just poorly
documented.  Accordingly, I fixed the documents.

The only code change I applied was to disallow the combination of
--create and --clean options.  This combination doesn't have any
practical use (if you're going to create a fresh database, what's
the point of issuing DROP commands for the individual items?),
and it isn't implemented correctly (the DROPs are applied to the
wrong database).  I don't see any point in trying to make it work
sensibly, since it has no value anyway.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <15591.1003875510@sss.pgh.pa.us>
Permalink:  ../15591.1003875510@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15591.1003875510@sss.pgh.pa.us

 · 

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 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: tgl@sss.pgh.pa.us, sszabo@megazone23.bigpanda.com, allane@cybaea.com, pjw@rhyme.com.au
  Subject: Re: [repost] pg_restore doesn't work with custom format?
  In-Reply-To: <15591.1003875510@sss.pgh.pa.us>
  References: <Pine.BSF.4.21.0110191740220.34111-100000@megazone23.bigpanda.com> <15591.1003875510@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