Re: BUG #18904: INTERSECT with an impossible where should eliminate both from the query plan

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: BUG #18904: INTERSECT with an impossible where should eliminate both from the query plan
Дата
Msg-id CAApHDvrH7U=jDci=uyPx_TK8bPo4Xfy41q6LvqS6n-5QNO7_sQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18904: INTERSECT with an impossible where should eliminate both from the query plan  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #18904: INTERSECT with an impossible where should eliminateboth from the query plan
Список pgsql-bugs
On Mon, 28 Apr 2025 at 06:02, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Anyway, as David said, this is not a bug.  If it's something you
> really want to see happen, try writing a patch yourself.

This is already somewhat better in v18 thanks to [1].
generate_nonunion_paths() already has some code to put the smallest
child on the left, and the recent changes in nodeSetOp.c means very
little work will be done when the left side is empty.

David

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=276279295



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