Re: [PoC] Reducing planning time when tables have many partitions
Yuya Watari <watari.yuya@gmail.com>
From: Yuya Watari <watari.yuya@gmail.com>
To: Andrey Lepikhov <a.lepikhov@postgrespro.ru>,
David Rowley <dgrowleyml@gmail.com>
Cc: Thom Brown <thom@linux.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>, Zhang Mingli <zmlpostgres@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2023-02-17T08:31:45Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Update wording in optimizer/README for EquivalenceClasses
- d7c04db27aeb 18.0 landed
-
Speedup child EquivalenceMember lookup in planner
- d69d45a5a956 18.0 landed
-
Allow planner to use Merge Append to efficiently implement UNION
- 66c0185a3d14 17.0 cited
-
Remove trailing zero words from Bitmapsets
- a8c09daa8bb1 17.0 cited
-
Make Vars be outer-join-aware.
- 2489d76c4906 16.0 cited
-
Avoid making commutatively-duplicate clauses in EquivalenceClasses.
- a5fc46414deb 16.0 cited
Attachments
- v17-0001-Adjust-bms_int_members-so-that-it-shortens-the-l.patch (application/octet-stream) patch v17-0001
- v17-0002-Add-Bitmapset-indexes-for-faster-lookup-of-Equiv.patch (application/octet-stream) patch v17-0002
- v17-0003-Fix-an-assertion.patch (application/octet-stream) patch v17-0003
- v17-0004-Move-EquivalenceMember-indexes-from-RelOptInfo-t.patch (application/octet-stream) patch v17-0004
Dear Andrey, On Tue, Feb 14, 2023 at 7:01 PM Andrey Lepikhov <a.lepikhov@postgrespro.ru> wrote: > As I see, You moved the indexes from RelOptInfo to PlannerInfo. May be > better to move them into RangeTblEntry instead? I really appreciate your kind advice. I think your idea is very good. I have implemented it as the v17 patches, which are attached to this email. The v17 has passed all regression tests in my environment. -- Best regards, Yuya Watari