Re: BUG #4982: Wrong result of cartesian product when function result included in where clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4982: Wrong result of cartesian product when function result included in where clause
Дата
Msg-id 9570.1250112674@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4982: Wrong result of cartesian product when function result included in where clause  ("hwa" <helmut.r.wagner@googlemail.com>)
Список pgsql-bugs
"hwa" <helmut.r.wagner@googlemail.com> writes:
> -- Cartesian product of all rows from table konten without konto_id = 4. I
> expect 9 rows from this query.
> SELECT abschlussart, abschlussdatum, konto_id, kontoname FROM public.konten,
> public.abschlusstermine
> WHERE konto_id in (select * from public.get_konten());

I get 9 rows from this in CVS tip.  I think you're getting bit by one of
the semijoin optimization bugs that we've already found in 8.4.
(IWO it's the IN that's the problem, not specifically either the
cartesian join or the function...)

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #4983: PostgreSQL build fails
Следующее
От: "Carlos B Netto"
Дата:
Сообщение: BUG #4984: One click Installation error.