Re: Reduce planning time for large NOT IN lists containing NULL
Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>
From: Ilia Evdokimov <ilya.evdokimov@tantorlabs.com>
To: David Geier <geidav.pg@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-20T13:28:57Z
Lists: pgsql-hackers
Attachments
- v3-0001-Reduce-planning-time-for-large-NOT-IN-lists-conta.patch (text/x-patch) patch v3-0001
On 2/20/26 16:25, Ilia Evdokimov wrote: > I've moved the NULL check higher, placing it immediately after > DatumGetArrayTypeP(). This allows us to detect the presence of NULL > elements before decontructing the array. > Sorry, I forgot to attach the patch in my previous mail. Attaching it now. -- Best regards. Ilia Evdokimov, Tantor Labs LLC, https://tantorlabs.com/
Commits
-
Short-circuit row estimation in NOT IN containing NULL consts
- c95cd2991f1e 19 (unreleased) landed
-
Move planner row-estimation tests to new planner_est.sql
- 374a6394c6ae 19 (unreleased) landed