Re: Binary search in ScalarArrayOpExpr for OR'd constant arrays
David Rowley <dgrowleyml@gmail.com>
From: David Rowley <dgrowleyml@gmail.com>
To: Zhihong Yu <zyu@yugabyte.com>
Cc: James Coleman <jtc331@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, Tomas Vondra <tomas.vondra@enterprisedb.com>,
Heikki Linnakangas <hlinnaka@iki.fi>, Tomas Vondra <tomas.vondra@2ndquadrant.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-05-23T06:36:03Z
Lists: pgsql-hackers
Attachments
- v4-0001-Speedup-NOT-IN-with-a-set-of-Consts.patch (application/octet-stream) patch v4-0001
On Sat, 8 May 2021 at 20:29, David Rowley <dgrowleyml@gmail.com> wrote: > > On Sat, 8 May 2021 at 20:17, Zhihong Yu <zyu@yugabyte.com> wrote: > > + if (!OidIsValid(saop->negfuncid)) > > + record_plan_function_dependency(root, saop->hashfuncid); > > > > Is there a typo in the second line ? (root, saop->negfuncid) > > Yeah, that's a mistake. Thanks for checking it. I've attached a patch which fixes the mistake mentioned above. Also, dropped the RMT from the thread. I only introduced them when I wanted some input about if hashing NOT IN should be included in PG14. Nobody seems to think that should be done. David
Commits
-
Use a hash table to speed up NOT IN(values)
- 29f45e299e7f 15.0 landed
-
Speedup ScalarArrayOpExpr evaluation
- 50e17ad281b8 14.0 landed