Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TXZI3-000727-It for pgsql-bugs@postgresql.org; Sun, 11 Nov 2012 15:17:39 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TXZI0-0004UX-Vx for pgsql-bugs@postgresql.org; Sun, 11 Nov 2012 15:17:39 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TXZHz-0004Em-Go for pgsql-bugs@postgresql.org; Sun, 11 Nov 2012 15:17:36 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1TXZHy-00088T-Qh for pgsql-bugs@postgresql.org; Sun, 11 Nov 2012 15:17:34 +0000 Date: Sun, 11 Nov 2012 15:17:34 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist To: pgsql-bugs@postgresql.org From: jfb@zer7.com X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201211/51 X-Sequence-Number: 34609 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. Have a good day James