model-writtenrun 8993 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Julien Rouhaud reported that hypothetical BRIN indexes had been broken since PostgreSQL 10 and supplied a fix that avoids opening the nonexistent index, using default pages-per-range because the interface cannot convey a hypothetical setting #1.
- Álvaro Herrera proposed hiding the BRIN statistics details behind a helper, while Tom Lane argued that the costing function already knew about revmap pages; Álvaro withdrew his objection, leaving broader relocation of access-method costing functions for separate work #2 #5 #6 #10 #11.
- Heikki Linnakangas tested with HypoPG and revised the patch for PostgreSQL 11 to avoid calculating indexRanges twice; Julien accepted the refactoring and confirmed that supporting custom pages-per-range lacked a backpatchable interface #12 #13.
- Tom proposed storing access-method statistics in IndexOptInfo through a callback or lazy initialization so hypothetical-index extensions could supply better estimates, but explained that this API redesign could not be backpatched and questioned demand for the smaller fix #14 #16.
- Julien argued that HypoPG could handle minor-version checks, while Álvaro raised ABI compatibility risks; Julien clarified that Heikki's existing patch required no extension ABI change and would transparently fix the failure #17 #18 #19.
- Michael Paquier revived the small fix, rebased Heikki's version onto HEAD, and supplied a separate HypoPG compatibility patch for PostgreSQL 13, initially proposing a HEAD-only landing #20 #21.
- Julien supported backpatching and planned to adapt the companion compatibility changes for HypoPG; Michael subsequently concluded that supplying default statistics was safe for stable branches while any API redesign should remain confined to master #22 #23.
- Michael committed the PostgreSQL portion of #21 with only comment wrapping changes as 168d206400 and confirmed backpatching through PostgreSQL 10; the broader statistics API redesign remained outside this fix, and the HypoPG compatibility changes belonged in the extension's repository #24.