Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8EAN-0006tt-TH for pgsql-bugs@postgresql.org; Sun, 02 Sep 2012 17:40:59 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8EAK-0006g7-Eq for pgsql-bugs@postgresql.org; Sun, 02 Sep 2012 17:40:59 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T8EAJ-0008DM-6h for pgsql-bugs@postgresql.org; Sun, 02 Sep 2012 17:40:55 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1T8EAI-0006kH-Ro for pgsql-bugs@postgresql.org; Sun, 02 Sep 2012 17:40:54 +0000 Date: Sun, 02 Sep 2012 17:40:54 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7515: DROP TABLE IF EXISTS fails if schema does not exist To: pgsql-bugs@postgresql.org From: james@illusorystudios.com X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201209/16 X-Sequence-Number: 34011 The following bug has been logged on the website: Bug reference: 7515 Logged by: James Bellinger Email address: james@illusorystudios.com PostgreSQL version: 9.1.5 Operating system: Ubuntu Linux 12.04 Server Description: = If the table being referenced has a schema in its name, and the schema does not exist, DROP TABLE IF EXISTS will have an ERROR instead of a NOTICE. So for instance, DROP TABLE IF EXISTS bar; This is a NOTICE if bar does not exist. DROP TABLE IF EXISTS foo.bar; This is an ERROR if foo does not exist, even though that implies bar does not exist which means it should be a NOTICE. Saw this because it was making a drop/recreate transaction fail on me, after I changed some code to use a schema.