Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Date: 1999-10-17 17:25:00
Message-ID: 199910171725.NAA11425@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sai(dot)msu(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-10-17 19:44:32 don't know whether nodes of type 719 are equal
Previous Message Bruce Momjian 1999-10-17 16:50:10 Re: [HACKERS] pg_type questions