Re: [HACKERS] union and LIMIT problem - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] union and LIMIT problem
Date
Msg-id 199911300029.TAA18425@candle.pha.pa.us
Whole thread Raw
In response to union and LIMIT problem  (Oleg Bartunov <oleg@sai.msu.su>)
Responses Re: [HACKERS] union and LIMIT problem
Re: [HACKERS] union and LIMIT problem
List pgsql-hackers
Can I assume this is fixed?  I see it marked on the TODO list.

> Does anybody know how to use UNION and LIMIT together ?
> I want to get 10 rows from publications and 10 rows 
> from keys.
> 
> select msg_id from publications limit 10 union
> select key_id from keys         limit 10 
> produces 
> ERROR:  parser: parse error at or near "union
> 
> select msg_id from publications union 
> select key_id from keys         limit 10
> produces something I wasn't expected
> 
> 
>     Regards,
> 
>         Oleg
> 
> _____________________________________________________________
> Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
> Sternberg Astronomical Institute, Moscow University (Russia)
> Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
> phone: +007(095)939-16-83, +007(095)939-23-83
> 
> 
> ************
> 


--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] psql and comments
Next
From: Uncle George
Date:
Subject: Re: [PORTS] Re: [HACKERS] RedHat6.0 & Alpha