From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | mailreg(at)numerixtechnology(dot)de |
Cc: | Greg Stark <gsstark(at)mit(dot)edu>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: COUNT(*) to find records which have a certain number of dependencies ? |
Date: | 2004-09-20 20:45:48 |
Message-ID: | 877jqohdoj.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches pgsql-sql |
T E Schmitz <mailreg(at)numerixtechnology(dot)de> writes:
> ) as somealias on (model_fk = model_pk)
>
> (subquery in FROM must have an alias)
ARGH! This is one of the most annoying things about postgres! It bites me all
the time. Obviously it's totally insignificant since it's easy for my to just
throw an "AS x" on the end of it. But damn.
I see there's a comment foreseeing some annoyance value for this in the
source:
/*
* The SQL spec does not permit a subselect
* (<derived_table>) without an alias clause,
* so we don't either. This avoids the problem
* of needing to invent a unique refname for it.
* That could be surmounted if there's sufficient
* popular demand, but for now let's just implement
* the spec and see if anyone complains.
* However, it does seem like a good idea to emit
* an error message that's better than "syntax error".
*/
So where can I officially register my complaint? :)
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Chester Kustarz | 2004-09-20 20:55:38 | Re: COUNT(*) to find records which have a certain number of |
Previous Message | LELARGE Guillaume | 2004-09-20 20:17:39 | Re: French translation updates for 7.4 and 7.5 |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2004-09-20 20:51:09 | Re: Help with function |
Previous Message | CHRIS HOOVER | 2004-09-20 20:36:00 | Help with function |