Re: minor patch submission: CREATE CAST ... AS EXPLICIT - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: minor patch submission: CREATE CAST ... AS EXPLICIT
Date
Msg-id 1306269775.14693.9.camel@vanquo.pezone.net
Whole thread Raw
In response to minor patch submission: CREATE CAST ... AS EXPLICIT  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: minor patch submission: CREATE CAST ... AS EXPLICIT  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: minor patch submission: CREATE CAST ... AS EXPLICIT  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
On lör, 2011-05-21 at 15:46 +0200, Fabien COELHO wrote:
> Hello,
> 
> Please find attached a minor stylish patch. It compiles and the update 
> test cases work for me.
> 
> Description:
> 
> Add "AS EXPLICIT" to "CREATE CAST"
> 
> This gives a name to the default case of "CREATE CAST", which creates a 
> cast which must be explicitely invoked.
> 
> >From a language definition perspective, it is helpful to have a name for 
> every case instead of an implicit fallback, without any word to describe 
> it. See for instance "CREATE USER CREATEDB/NOCREATEDB" or "CREATE RULE ... 
> DO ALSO/INSTEAD" for similar occurences of naming default cases.

Oddly enough, we did add the DO ALSO syntax much later, and no one
complained about that, as far as I recall.



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: about EDITOR_LINENUMBER_SWITCH
Next
From: Peter Geoghegan
Date:
Subject: Latch implementation that wakes on postmaster death on both win32 and Unix