Re: BUG #18851: Queries with xxx NOT IN (SELECT xxx FROM table) fail to run (or run very slowly) on v17 (v14 ok)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18851: Queries with xxx NOT IN (SELECT xxx FROM table) fail to run (or run very slowly) on v17 (v14 ok)
Дата
Msg-id 3086084.1741971414@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #18851: Queries with xxx NOT IN (SELECT xxx FROM table) fail to run (or run very slowly) on v17 (v14 ok)  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> I have experienced a misbehaviour (IMHO) in PostgreSQL 17 that didn't occur
> in PostgreSQL 14.

What have you got work_mem set to in the two installations?

For me, both versions switch to the cheap hashed plan if work_mem
is large enough that the inner table is estimated to fit in it
(somewhere around 10MB-20MB for this specific example).  If anything
the newer code seems to have a smaller threshold.

            regards, tom lane



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