Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6kjD-0000WV-F5 for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2013 16:35:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U6kjC-0003ol-7i for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2013 16:35:06 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6kjB-0003na-8F for pgsql-bugs@postgresql.org; Sat, 16 Feb 2013 16:35:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6kj9-0006Ux-PY for pgsql-bugs@postgresql.org; Sat, 16 Feb 2013 16:35:04 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r1GGZ15A011258; Sat, 16 Feb 2013 11:35:01 -0500 (EST) From: Tom Lane To: Bruce Momjian cc: Dave Rolsky , pgsql-bugs@postgresql.org Subject: Re: BUG #7873: pg_restore --clean tries to drop tables that don't exist In-reply-to: <20130215234637.GH12030@momjian.us> References: <20130215203205.GC12030@momjian.us> <20130215234637.GH12030@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Fri, 15 Feb 2013 18:46:37 -0500" Date: Sat, 16 Feb 2013 11:35:01 -0500 Message-ID: <11257.1361032501@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Bruce Momjian 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