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

From: Tom Lane <tgl(at)sss(dot)pgh(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-18 14:37:55
Message-ID: 25071.940257475@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> patch was applied smoothly to 6.5.2

> select a.msg_id, c.status_set_date, c.title
> from Message_Keyword_map a, messages c, keywords d
> where c.status_id =1 and d.name ~* 'moon' and a.key_id=d.key_id
> and c.msg_id=a.msg_id
> intersect
> select a.msg_id, a.status_set_date, a.title from messages a
> where a.status_id = 1 and a.title ~* 'moon' limit 5;

> produces (10 rows)

Hmm. It seemed to work as expected in current --- maybe there is
another bug still lurking in 6.5.*. I'll look when I get a chance.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 1999-10-18 14:48:52 Re: [HACKERS] Tr: Functions documentations
Previous Message Tom Lane 1999-10-18 14:34:52 Re: [HACKERS] sort on huge table