Re: CREATE SCHEMA IF NOT EXISTS - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: CREATE SCHEMA IF NOT EXISTS
Date
Msg-id 6C98E3D5-F93F-4BED-B8CF-BBE2072AB2D3@justatheory.com
Whole thread Raw
In response to Re: CREATE SCHEMA IF NOT EXISTS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: CREATE SCHEMA IF NOT EXISTS  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On Oct 2, 2012, at 12:08 PM, Alvaro Herrera <alvherre@2ndquadrant.com> wrote:

> create schema if not exists foo create table first (a int);
> create schema if not exists foo create table second (a int);
>
>
> As far as I can see, with the patch as it currently stands, you would
> end up with only table "first" in the schema, which seems very
> surprising to me.

Yeah, I think the second should die. CINE should only work if there are no other objects created as part of the
statement,IMHO. 

Best,

David




pgsql-hackers by date:

Previous
From: "David Johnston"
Date:
Subject: Re: Raise a WARNING if a REVOKE affects nothing?
Next
From: Alvaro Herrera
Date:
Subject: Re: CREATE SCHEMA IF NOT EXISTS