Re: BUG #18465: Wrong results from SELECT DISTINCT MIN in scalar subquery using HashAggregate

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18465: Wrong results from SELECT DISTINCT MIN in scalar subquery using HashAggregate
Дата
Msg-id 2787680.1716051404@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18465: Wrong results from SELECT DISTINCT MIN in scalar subquery using HashAggregate  (Dmitry Dolgov <9erthalion6@gmail.com>)
Список pgsql-bugs
Dmitry Dolgov <9erthalion6@gmail.com> writes:
> Thanks, I could reproduce this in v15 and v16. Interestingly enough it
> was fixed in d0d44049d1, but looks like due to lack of error reports the
> fix was applied only on the main branch. I assume this one makes it
> necessary to back-patch the fix.

Hah.  Nothing like fixing a bug that you know is there but you can't
demonstrate it ;-).  I confirm the problem appears in d0d44049d1^
(and at least as far back as v12), but not in d0d44049d1 or HEAD.
So yeah, add test case and back-patch.

Many thanks for the test case!

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #18472: SELECT FOR UPDATE locking more rows than expected
Следующее
От: Noah Misch
Дата:
Сообщение: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae