public inbox for [email protected]
help / color / mirror / Atom feedFrom: Thomas F.O'Connell <[email protected]>
To: Stephan Szabo <[email protected]>
Cc: [email protected]
Subject: EXTRACT Clarification
Date: Wed, 29 Sep 2004 08:35:32 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
Switching this thread to DOCS and renaming it...
Anyway, I think that this situation calls for some clarification in the
docs. If others agree, I'd be happy to submit a potential patch.
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.
Is this wording acceptable? I'd imagine putting it at the end of 9.8.1.
Also, are there other expressions that fall into this category? I don't
know the spec well enough to know.
-tfo
On Sep 29, 2004, at 1:30 AM, Stephan Szabo wrote:
> [email protected]
>
> On Tue, 28 Sep 2004, Thomas F.O'Connell wrote:
>
>> From 11.5 in the docs:
>>
>> "The syntax of the CREATE INDEX command normally requires writing
>> parentheses around index expressions, as shown in the second example.
>> The parentheses may be omitted when the expression is just a function
>> call, as in the first example."
>>
>> But when I try this:
>>
>> db=# CREATE INDEX expression_idx on some_table( extract( year from
>> some_column ) );
>
> Extract(year from some_column) is not really just a function call it's
> an expression that looks similar to a function call because that's how
> SQL
> defined it.
view thread (13+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: EXTRACT Clarification
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox