Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-16 Thread Josh Berkus
On 07/16/2013 03:12 PM, Tom Lane wrote: > Josh Berkus writes: >> On 07/09/2013 01:10 AM, Fabien COELHO wrote: Where are we with this patch? Fabien, are you going to submit an updated version which addresses the objections, or should I mark it Returned With Feedback? > >>> There is

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-16 Thread Tom Lane
Josh Berkus writes: > On 07/09/2013 01:10 AM, Fabien COELHO wrote: >>> Where are we with this patch? Fabien, are you going to submit an >>> updated version which addresses the objections, or should I mark it >>> Returned With Feedback? >> There is no need for an updated patch. I addressed the ob

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-16 Thread Josh Berkus
On 07/09/2013 01:10 AM, Fabien COELHO wrote: >> Where are we with this patch? Fabien, are you going to submit an >> updated version which addresses the objections, or should I mark it >> Returned With Feedback? > > There is no need for an updated patch. I addressed the objections with > words, no

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-13 Thread Cédric Villemain
> >> Generally speaking, I agree with Robert's objection. The patch in > >> itself adds only one unnecessary keyword, which probably wouldn't be > >> noticeable, but the argument for it implies that we should be willing > >> to add a lot more equally-unnecessary keywords, which I'm not. gram.o >

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-09 Thread Fabien COELHO
Hello Josh, Generally speaking, I agree with Robert's objection. The patch in itself adds only one unnecessary keyword, which probably wouldn't be noticeable, but the argument for it implies that we should be willing to add a lot more equally-unnecessary keywords, which I'm not. gram.o is alr

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-07-08 Thread Josh Berkus
On 06/24/2013 06:55 AM, Tom Lane wrote: > Andres Freund writes: >> What about simply not using a keyword at that location at all? Something >> like the attached hack? > Generally speaking, I agree with Robert's objection. The patch in > itself adds only one unnecessary keyword, which probably wou

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Andres Freund
On 2013-06-24 09:55:22 -0400, Tom Lane wrote: > Andres Freund writes: > > What about simply not using a keyword at that location at all? Something > > like the attached hack? > > "Hack" is much too polite a word for that. This will for example fail > to respect the difference between quoted and

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Tom Lane
Andres Freund writes: > What about simply not using a keyword at that location at all? Something > like the attached hack? "Hack" is much too polite a word for that. This will for example fail to respect the difference between quoted and unquoted words. If the argument for this patch is to make

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Cédric Villemain
Le lundi 24 juin 2013 11:44:21, Fabien COELHO a écrit : > >> Here it is. > > > > The patch does not apply and git also whines about trailing space. > > It needs a v3... > > The attachement here works for me. > Could you be more precise about the issue? > > postgresql> git branch test master >

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Andres Freund
On 2013-06-22 15:10:07 -0400, Robert Haas wrote: > On Sat, Jun 22, 2013 at 9:16 AM, Cédric Villemain > wrote: > > patch is in unified format and apply on HEAD. > > patch contains documentation, however I believe 'AS IMPLICIT' is a > > PostgreSQL > > extension with special behavior and 'AS EXPLICI

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Fabien COELHO
Here it is. The patch does not apply and git also whines about trailing space. It needs a v3... The attachement here works for me. Could you be more precise about the issue? postgresql> git branch test master postgresql> git checkout test Switched to branch 'test' postgresql> patch -p1

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-24 Thread Cédric Villemain
Hello Fabien, > > I flag it 'return with feedback', please update the patch so it builds. > > Everything else is ok. > > Here it is. The patch does not apply and git also whines about trailing space. It needs a v3... Please note that a community-agreed behavior on this patch is not yet acquired

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-22 Thread Fabien COELHO
I flag it 'return with feedback', please update the patch so it builds. Everything else is ok. Here it is. -- Fabien.diff --git a/doc/src/sgml/ref/create_cast.sgml b/doc/src/sgml/ref/create_cast.sgml index 29ea298..0ace996 100644 --- a/doc/src/sgml/ref/create_cast.sgml +++ b/doc/src/sgml/ref/

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-22 Thread Fabien COELHO
Hello Cédric, So maybe it is possible to rephrase this piece: - AS IMPLICIT is a PostgreSQL - extension, too. + AS IMPLICIT and AS EXPLICIT are + a PostgreSQL extension, too. Ok. Back in 2012 Tom exposed arguments against it, or at least not a clear +1. The patch add nothing but mor

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-22 Thread Fabien COELHO
Hello Robert, I object to this patch. This patch a new keyword, EXPLICIT, for reasons that are strictly cosmetic. Everything that you can do with this patch can also be done without this patch. It is not a good idea to slow down parsing of every SQL statement we have just so that someone can

Re: [Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-22 Thread Robert Haas
On Sat, Jun 22, 2013 at 9:16 AM, Cédric Villemain wrote: > patch is in unified format and apply on HEAD. > patch contains documentation, however I believe 'AS IMPLICIT' is a PostgreSQL > extension with special behavior and 'AS EXPLICIT' respect the standard except > that PostgreSQL adds only the e

[Review] Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-22 Thread Cédric Villemain
Le lundi 17 juin 2013 00:02:21, Fabien COELHO a écrit : > >> What activity would you expect? > > > > A patch which applies cleanly to git HEAD. This one doesn't for me, > > although I'm not really sure why, I don't see any obvious conflicts. > > Please find attached a freshly generated patch aga

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-16 Thread Fabien COELHO
What activity would you expect? A patch which applies cleanly to git HEAD. This one doesn't for me, although I'm not really sure why, I don't see any obvious conflicts. Please find attached a freshly generated patch against current master. -- Fabien.diff --git a/doc/src/sgml/ref/create_ca

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-16 Thread Jeff Janes
On Sun, Jun 16, 2013 at 12:25 PM, Fabien COELHO wrote: > > Hello, > > > I saw you added this 2-year old thread to the 2013-06 commitfest, but I >> don't see any new activity. Huh? >> > > What activity would you expect? A patch which applies cleanly to git HEAD. This one doesn't for me, althou

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-16 Thread Fabien COELHO
Hello, I saw you added this 2-year old thread to the 2013-06 commitfest, but I don't see any new activity. Huh? What activity would you expect? I sent the patch 2 years ago on the list, and now that I figured out that there is a "submitted patch list" open for consideration I added the corr

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2013-06-16 Thread Heikki Linnakangas
Hi, I saw you added this 2-year old thread to the 2013-06 commitfest, but I don't see any new activity. Huh? On 28.05.2011 00:48, Fabien COELHO wrote: From a language definition perspective, it is helpful to have a name for every case instead of an implicit fallback, without any word to des

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-06-27 Thread Brendan Jurd
On 18 June 2011 09:49, Brendan Jurd wrote: > Hi Fabien, > > I'm taking a look at this patch for the commitfest.  On first reading > of the patch, it looked pretty sensible to me, but I had some trouble > applying it to HEAD: > > error: patch failed: doc/src/sgml/ref/create_cast.sgml:20 > error: do

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-06-17 Thread Brendan Jurd
On 22 May 2011 07:27, Fabien COELHO wrote: > > Hello Tom, > >>> 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. >> >> I'm not sure this is a good idea.  The CREATE CAST syntax is in the SQL >> st

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-27 Thread Fabien COELHO
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 en

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-24 Thread Tom Lane
Peter Eisentraut writes: > On lör, 2011-05-21 at 15:46 +0200, Fabien COELHO wrote: >> 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

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-24 Thread Peter Eisentraut
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 create

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-21 Thread Fabien COELHO
Hello Tom, 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. I'm not sure this is a good idea. The CREATE CAST syntax is in the SQL standard, and this isn't it. Now I realize that we've extende

Re: [HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-21 Thread Tom Lane
Fabien COELHO writes: > 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. I'm not sure this is a good idea. The CREATE CAST syntax is in the SQL standard, and this isn't it. Now

[HACKERS] minor patch submission: CREATE CAST ... AS EXPLICIT

2011-05-21 Thread Fabien COELHO
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