Re: Planner join order regression from PG 15 to PG 16+: 70ms -> 1440ms (self-contained reproducer included)
Andrei Lepikhov <lepihov@gmail.com>
From: Andrei Lepikhov <lepihov@gmail.com>
To: Mauro Gatti <mauro.gt70@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@lists.postgresql.org
Date: 2026-03-06T09:05:55Z
Lists: pgsql-performance
On 6/3/26 09:24, Mauro Gatti wrote: > In any case, I don’t think there are other workable solutions without > changing the code. The gist of the issue is hidden [anti]correlations between columns. I like the idea of grouping columns into a custom type when an object in the data model is defined by several properties. This approach could help reduce the number of clauses, hide correlations within an object, and enable the use of histogram statistics. I'm not sure if this idea is ready to use yet, or if Postgres has everything needed to make it work well - just note. -- regards, Andrei Lepikhov, pgEdge