Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslXV-0003yN-AN for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Jun 2013 03:09:29 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UslXU-00045C-QP for pgsql-bugs@arkaria.postgresql.org; Sat, 29 Jun 2013 03:09:28 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslXT-00044t-Nm for pgsql-bugs@postgresql.org; Sat, 29 Jun 2013 03:09:27 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UslXN-00074h-8l for pgsql-bugs@postgresql.org; Sat, 29 Jun 2013 03:09:26 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1UslXM-0005lb-PU; Fri, 28 Jun 2013 23:09:20 -0400 Date: Fri, 28 Jun 2013 23:09:20 -0400 From: Bruce Momjian To: jfb@zer7.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist Message-ID: <20130629030920.GL13790@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -0.5 (/) 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 On Sun, Nov 11, 2012 at 03:17:34PM +0000, jfb@zer7.com wrote: > The following bug has been logged on the website: > > Bug reference: 7650 > Logged by: James Bellinger > Email address: jfb@zer7.com > PostgreSQL version: 9.1.5 > Operating system: Ubuntu Linux 12.04 Server > Description: > > Not sure this worked last time (I got some DMARC error), but here's a > bug... > > If a schema does not exist, DROP TABLE IF EXISTS schema.table will cause the > transaction to fail (due to 'schema does not exist'). End result, DROP TABLE > IF EXISTS is pretty much unusable with schemas. It needs to act the same as > DROP TABLE IF EXISTS does for the default schema. FYI, this will be fixed in Postgres 9.3. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs