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

From Alvaro Herrera
Subject Re: CREATE SCHEMA IF NOT EXISTS
Date
Msg-id 1349210181-sup-1239@alvh.no-ip.org
Whole thread Raw
In response to Re: CREATE SCHEMA IF NOT EXISTS  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: CREATE SCHEMA IF NOT EXISTS  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
List pgsql-hackers
Excerpts from Andrew Dunstan's message of mar oct 02 17:24:38 -0300 2012:
>
> On 10/02/2012 03:48 PM, Tom Lane wrote:
> > Alvaro Herrera <alvherre@2ndquadrant.com> writes:

> >> Well, if that's the rationale then you end up with no schema foo at all
> >> (i.e. both die), which seems even more surprising (though I admit it has
> >> the advantage of being a simple rule to document.)
> > I think we should just disallow putting any contained objects in the
> > statement when IF NOT EXISTS is used.  It's simple to understand, simple
> > to document and implement, and I think it covers all the sane use-cases
> > anyway.
>
> I thought we'd already agreed on this.

Well, it's not what the latest proposed patch implements.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: CREATE SCHEMA IF NOT EXISTS
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Hash id in pg_stat_statements