Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower
От
David Rowley
Тема
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower
Дата
Msg-id
CAApHDvr+70jEZpraMZ8sj=UH77dBzCaeUc9EcJHB3YaxX9syNg@mail.gmail.com
Ответ на
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower (Richard Guo)
Список
Дерево обсуждения
BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower PG Bug reporting form <noreply@postgresql.org>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Andrei Lepikhov <a.lepikhov@postgrespro.ru>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Richard Guo <guofenglinux@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower "David G. Johnston" <david.g.johnston@gmail.com>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Andres Freund <andres@anarazel.de>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Andres Freund <andres@anarazel.de>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower Tom Lane <tgl@sss.pgh.pa.us>
Re: BUG #17540: Prepared statement: PG switches to a generic query plan which is consistently much slower David Rowley <dgrowleyml@gmail.com>
On Fri, 7 Jul 2023 at 19:03, Richard Guo wrote: > Attached is what I have in mind. The patch extends the logic from two > points. > > * it also checks OR clauses to see if it is always true. > > * it also checks for join clauses by additionally testing if the nulling > bitmap is empty. Do you mind writing some regression tests for this? I don't really see an existing test file that would suit, maybe it's worth adding something like predicate.sql David
В списке pgsql-bugs по дате отправления
От: Alexander Lakhin
Дата:
От: Richard Guo
Дата: