UNION not allowed in sub-selects? - Mailing list pgsql-hackers

From Oliver Elphick
Subject UNION not allowed in sub-selects?
Date
Msg-id 199911281950.TAA10719@linda.lfix.co.uk
Whole thread Raw
Responses Re: [HACKERS] UNION not allowed in sub-selects?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [HACKERS] UNION not allowed in sub-selects?  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
In 6.5.3, it seems that UNION is not allowed inside a sub-select:

bray=> select p.id, p.name, a.town from person* as p, address as a
bray=> where p.id in
bray-> (select id from customer union select id from supplier);
ERROR:  parser: parse error at or near "union"

The same applies to EXCEPT and INTERSECT.

Is this a permanent feature, an oversight, or something already on the TODO
list?


--      Vote against SPAM: http://www.politik-digital.de/spam/                ========================================
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver              PGP key from public servers; key
ID32B8FAA1                ========================================    "The earth is the LORD'S, and the fullness
thereof;the     world, and they that dwell therein."       Psalms 24:1
 




pgsql-hackers by date:

Previous
From: Ed Loehr
Date:
Subject: [HACKERS] How to get OID from INSERT in PL/PGSQL?
Next
From: Tim Holloway
Date:
Subject: Re: [HACKERS] Re: pg_ctl