Re: [HACKERS] is it possible to use LIMIT and INTERSECT ? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Date
Msg-id 199910171725.NAA11425@candle.pha.pa.us
Whole thread Raw
In response to is it possible to use LIMIT and INTERSECT ?  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
The only workaround I can think of is to do an INSERT.. SELECT or SELECT
... INTO TABLE  with the INSERSECT, and use LIMIT on the resulting table.


> Subject says all.
> In general I want to limit output from
> 
> select ......
>  intersect
> select ......
> 
> Current implementation of LIMIT doesn't support this.
> Are there any solutions ?
> 
> 
> 
>     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] pg_type questions
Next
From: Peter Eisentraut
Date:
Subject: don't know whether nodes of type 719 are equal