Re: [HACKERS] subquery syntax broken - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] subquery syntax broken
Date
Msg-id 199802021829.NAA15514@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] subquery syntax broken  ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>)
List pgsql-hackers
>
> > It's not the aggregates, it is the whole '= (subquery)' that is missing
> > from gram.y.  I am adding it now.
>
> Right, and aggregates are the only way in general to get a singleton result from
> a subselect. OK, I forgot about "where y = (select 1)". Well, only _useful_
> way?? I'll bet I'm forgetting another one too...
>

Sometimes you have = (subselect) with one row, often with correlated
subqueries, but most often with aggregates.


--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] subquery syntax broken
Next
From: ocie@paracel.com
Date:
Subject: Re: [HACKERS] subquery syntax broken