Re: BUG #17618: unnecessary filter column <> text even after adding index
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jeff Janes <jeff.janes@gmail.com>, sindysenorita@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2022-09-24T00:06:06Z
Lists: pgsql-bugs
On Fri, Sep 23, 2022 at 9:29 PM Richard Guo <guofenglinux@gmail.com> wrote: > So I think we need to run eval_const_expressions on indexquals before we > check for duplicate clauses, something like attached. > BTW, (revise to the v1 patch), if this is the right way to go, we should do that before the foreach loop, so that we need to run eval_const_expressions on indexquals only once rather than for each scan clause. Thanks Richard
Commits
-
Produce more-optimal plans for bitmap scans on boolean columns.
- 042c9091f0fc 16.0 landed