Re: pgsql: Allow the syntax CREATE TYPE foo, with no parameters, to permit - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Allow the syntax CREATE TYPE foo, with no parameters, to permit
Date
Msg-id 7318.1141195971@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Allow the syntax CREATE TYPE foo, with no  (Neil Conway <neilc@samurai.com>)
Responses Re: pgsql: Allow the syntax CREATE TYPE foo, with no parameters, to permit  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-committers
Neil Conway <neilc@samurai.com> writes:
> On Tue, 2006-02-28 at 18:37 -0400, Tom Lane wrote:
>> Allow the syntax CREATE TYPE foo, with no parameters, to permit explicit
>> creation of a shell type.

> BTW, I noticed that it would be nice to make use of this syntax among
> for contrib/ --

No objection here, if you want to have at it.

> if nothing else to avoid the ugly "NOTICE" that is
> currently emitted in many cases describing the implicit creation of a
> shell type.

As things currently stand, you'll still get some annoying "NOTICE: foo
is a shell type" messages from a completely-kosher creation sequence.
Ideally we should get rid of these, but on the other hand random
references to an incomplete shell type are probably worth warning
about.  Any thoughts about the best approach here?

            regards, tom lane

pgsql-committers by date:

Previous
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Attached is a patch that replaces a bunch of places where
Next
From: Martijn van Oosterhout
Date:
Subject: Re: pgsql: Allow the syntax CREATE TYPE foo, with no parameters, to permit