pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Dave Rolsky <autarch@urth.org>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7873: pg_restore --clean tries to drop tables that don't exist
Date: Sat, 16 Feb 2013 11:35:01 -0500
Message-ID: <11257.1361032501@sss.pgh.pa.us> (raw)
In-Reply-To: <20130215234637.GH12030@momjian.us>
References: <E1U5iqp-0000nA-Uh@wrigleys.postgresql.org>
	<20130215203205.GC12030@momjian.us>
	<alpine.DEB.2.00.1302151604450.13270@urth.org>
	<20130215234637.GH12030@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Bruce Momjian <bruce@momjian.us> writes:
> On Fri, Feb 15, 2013 at 04:06:12PM -0600, Dave Rolsky wrote:
>> Fair enough. It should probably an option to add "if exists", at
>> least. I can't imagine I'm the only using this tool to ship database
>> updates around to different machines, some of which may not have new
>> tables. I'd really like to be able to know when the restore fails
>> versus when it succeeds but is noisy.

> All I can say is I don't remember anyone asking for this in the past.

I think it has come up before.  I wouldn't object to a pg_dump option to
add IF EXISTS to all the drop commands (though changing the default
behavior would be more controversial).  Don't intend to spend my own
time on it though ...

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (83+ messages)  latest in thread

Message-ID: <11257.1361032501@sss.pgh.pa.us>
Permalink:  ../11257.1361032501@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11257.1361032501@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, bruce@momjian.us, autarch@urth.org
  Subject: Re: BUG #7873: pg_restore --clean tries to drop tables that don't exist
  In-Reply-To: <11257.1361032501@sss.pgh.pa.us>
  References: <E1U5iqp-0000nA-Uh@wrigleys.postgresql.org> <20130215203205.GC12030@momjian.us> <alpine.DEB.2.00.1302151604450.13270@urth.org> <20130215234637.GH12030@momjian.us> <11257.1361032501@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