pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jfb@zer7.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist
Date: Sun, 11 Nov 2012 15:17:34 +0000
Message-ID: <E1TXZHy-00088T-Qh@wrigleys.postgresql.org> (raw)

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





view thread (2+ messages)  latest in thread

Message-ID: <E1TXZHy-00088T-Qh@wrigleys.postgresql.org>
Permalink:  ../E1TXZHy-00088T-Qh@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1TXZHy-00088T-Qh@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: jfb@zer7.com
  Subject: Re: BUG #7650: DROP TABLE IF EXISTS fails if schema does not exist
  In-Reply-To: <E1TXZHy-00088T-Qh@wrigleys.postgresql.org>
  References: <E1TXZHy-00088T-Qh@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox