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-23T23:54:02Z
Lists: pgsql-bugs
On Fri, Sep 23, 2022 at 10:10 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > Richard Guo <guofenglinux@gmail.com> writes: > > So I think we need to run eval_const_expressions on indexquals before we > > check for duplicate clauses, something like attached. > > [ squint... ] Surely that was done long before we ever get here? We should have already done that long before. It seems afterwards we may do additional transformation on indexquals. In this case with a boolean index, I can see we convert the indexqual to form 'indexkey = TRUE' in match_boolean_index_clause. Thanks Richard
Commits
-
Produce more-optimal plans for bitmap scans on boolean columns.
- 042c9091f0fc 16.0 landed