BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist

From: jfb(at)zer7(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist
Date: 2012-11-11 15:17:34
Message-ID: E1TXZHy-00088T-Qh@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 7650
Logged by: James Bellinger
Email address: jfb(at)zer7(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message m-pg 2012-11-11 15:45:54 BUG #7651: Superfluous calls to functions used for indexing
Previous Message Tom Lane 2012-11-10 15:58:51 Re: BUG #7644: Missing implicit types of Result and failing type-conversion