X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EBC3E32A06F for ; Wed, 29 Sep 2004 16:42:42 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91695-02 for ; Wed, 29 Sep 2004 15:42:34 +0000 (GMT) Received: from smtp04.mrf.mail.rcn.net (smtp04.mrf.mail.rcn.net [207.172.4.63]) by svr1.postgresql.org (Postfix) with ESMTP id 325E632A150 for ; Wed, 29 Sep 2004 16:42:33 +0100 (BST) Received: from 209-6-216-111.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com ([209.6.216.111] helo=[192.168.0.8]) by smtp04.mrf.mail.rcn.net with esmtp (Exim 3.35 #7) id 1CCgb6-0007dJ-00; Wed, 29 Sep 2004 11:42:28 -0400 In-Reply-To: <29367.1096471944@sss.pgh.pa.us> References: <20040928222637.L43334@megazone.bigpanda.com> <0E177963-1214-11D9-8537-000D93AE0944@sitening.com> <29367.1096471944@sss.pgh.pa.us> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <29A85DE5-122E-11D9-8537-000D93AE0944@sitening.com> Content-Transfer-Encoding: 7bit Cc: Stephan Szabo , pgsql-docs@postgresql.org From: Thomas F.O'Connell Subject: Re: EXTRACT Clarification Date: Wed, 29 Sep 2004 11:42:26 -0400 To: Tom Lane X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/42 X-Sequence-Number: 2561 That seems reasonable, too, although I was interested to learn that this (and a few other expressions) weren't actually functions. Whether that's actually meaningful for any implementation purposes is debatable. Even if the grammar is changed to allow it, it's probably worth making a note of it in SQL compatibility documentation. Speaking of which, since functions aren't in the SQL Commands reference, where the compatibility documentation resides, does anyone see value in adding compatibility information to The SQL Language section as a whole? I can contribute what I know, but I don't have a full copy of the spec. -tfo On Sep 29, 2004, at 11:32 AM, Tom Lane wrote: > "Thomas F.O'Connell" writes: >> I'm thinking something like this (with thanks to Stephan): > >> Note: EXTRACT is not a true function. SQL defines it as an expression >> that happens to look similar to a function call. > > Rather than documenting this, maybe we should change the grammar to > allow it? > > regards, tom lane