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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Дата
Msg-id 8432.940311189@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> Thanks Tom,
> I synced REL6_5 tree, compile, install but still query

> 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 ~* 'sun'  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 ~* 'sun' limit 10;

> produces more than 10 rows !

If you'd care to provide a reproducible stand-alone test case I'll look
into it further.  I do not feel like trying to reverse-engineer your
table declarations.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [HACKERS] is it possible to use LIMIT and INTERSECT ?
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Postgres problems with 6.4 / 6.5 (fwd)