Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9NMJdP22514 for ; Tue, 23 Oct 2001 18:19:39 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f9NMIUc15594; Tue, 23 Oct 2001 18:18:30 -0400 (EDT) To: Stephan Szabo cc: Allan Engelhardt , Philip Warner , pgsql-admin@postgresql.org Subject: Re: [repost] pg_restore doesn't work with custom format? In-reply-to: References: Comments: In-reply-to Stephan Szabo message dated "Fri, 19 Oct 2001 18:01:33 -0700" Date: Tue, 23 Oct 2001 18:18:30 -0400 Message-ID: <15591.1003875510@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200110/220 X-Sequence-Number: 2464 > 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