Re: RFE: Column aliases in WHERE clauses - Mailing list pgsql-general

From Craig Ringer
Subject Re: RFE: Column aliases in WHERE clauses
Date
Msg-id 5058185E.9050907@ringerc.id.au
Whole thread Raw
In response to Re: RFE: Column aliases in WHERE clauses  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: RFE: Column aliases in WHERE clauses  (Chris Angelico <rosuav@gmail.com>)
List pgsql-general
On 09/18/2012 07:32 AM, Tom Lane wrote:
> It's easier to understand why this is if you realize that SQL has a very
> clear model of a "pipeline" of query execution.

I just wish they hadn't written it backwards!

It'd be much less confusing were it formulated as something like:

SELECT
FROM thetable
WHERE first_letter > 'a'
RESULTS left(value,1) AS first_letter

or something, where the order is more obvious. I really dislike the way
SQL is written not-quite-backwards.

--
Craig Ringer


pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: log_destination = csvlog, line breaks interfere in analysis
Next
From: "Albe Laurenz"
Date:
Subject: Re: State of the art for foreign keys to child tables?