| From: | Kirill Reshke <reshkekirill(at)gmail(dot)com> |
|---|---|
| To: | Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com> |
| Cc: | Nitin Motiani <nitinmotiani(at)google(dot)com>, jdimov(at)a115(dot)bg, pgsql-bugs(at)lists(dot)postgresql(dot)org, guofenglinux(at)gmail(dot)com |
| Subject: | Re: BUG #19936: Planning is slower on 19.0 with many partial indexes on a SQL function |
| Date: | 2026-12-01 04:46:36 |
| Message-ID: | CALdSSPjnwf280JnLZBSjJMFp+O2FdK7iw63pON_ungzq=hrNWA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Tue, 1 Dec 2026 at 05:30, Ishjaap Singh <ishjaap(dot)singh07(at)gmail(dot)com> wrote:
> That works out to about 51 microseconds of additional planning time
> per index in the larger-body case. With what Jordan reported about
> his application, I think it's worth fixing.
>
> On a fix, both of your ideas aim to skip the second pass when it isn't
> needed. Another direction would be to avoid repeating the failed
> inlining attempt in the second pass, as stopping it early with SET
> search_path removes most of the slowdown. Either way, #19007's case
> should stay covered by the tests.
>
> I'm happy to write a patch for whichever way looks better.
Go for it. From Nitin's options, I think option 2 is more simple and nit.
--
Best regards,
Kirill Reshke
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raja Sai pranav | 2026-12-01 04:50:50 | Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance |
| Previous Message | Raja Sai pranav | 2026-12-01 04:32:06 | Re: btree_gist: <-> fails on same-sign infinite intervals |