model-writtenrun 4610 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Laurenz Albe proposed explaining parameterized queries without supplying values, motivated by queries recovered from pg_stat_statements and logs; his initial patch tied this behavior to plan_cache_mode=force_generic_plan #1.
- Tom Lane proposed an explicit GENERIC_PLAN option to avoid masking mistakes and to reject ANALYZE cleanly #2, while Julien Rouhaud described its usefulness for hypothetical-index tools #3; Laurenz implemented the explicit option in #4.
- Julien recommended using explain_filter() for stable regression output and PL/pgSQL coverage #5, which Laurenz adopted in #6; subsequent fixes corrected the SGML error identified by Andres Freund and the uninitialized variable found through Michel Pelletier's testing #7 #8 #9 #10.
- Jim Jones tested the feature and questioned BUFFERS output, parenthesized syntax, and the option name #11; Tom explained that the output reflected existing cache behavior, retained the modern parenthesized syntax, and preferred GENERIC_PLAN #12.
- Tom found that the implementation allowed inconsistent types for repeated parameters and could override externally defined parameters, so he supplied a replacement using PREPARE's existing parameter-analysis infrastructure #13.
- Laurenz accepted that rewrite but discovered missing-parameter errors with foreign partitions #14; after Tom pointed toward premature executor evaluation #15, Laurenz proposed suppressing partition pruning for ordinary EXPLAIN as well #16.
- Tom objected that changing ordinary EXPLAIN pruning would disrupt existing behavior and suggested a separate executor flag #17; Laurenz adopted EXEC_FLAG_EXPLAIN_GENERIC, retaining plan-time pruning while suppressing execution-time pruning, and added regression coverage #18.
- After another CI failure report #19, Laurenz removed a username-dependent test notice by explicitly dropping the user mapping #20.
- Christoph Berg identified that core regression tests could not depend on an installed contrib extension and requested clearer documentation and diagnostics #21; Laurenz moved foreign-table coverage into postgres_fdw, retained local-partition coverage in core tests, and revised the wording #22.
- Laurenz added psql completion in the final submission #23, and Christoph declared it ready for committer #24.
- Tom questioned whether the foreign-partition test exercised anything beyond the core test #25; Christoph relayed Laurenz's rationale #26, but Tom decided to omit the apparently duplicative contrib test and leave further discussion open #27.
- Tom committed 3c05284d83 from #23, preserving the feature while changing executor-flag propagation to subplans, removing the assertion and postgres_fdw tests, and refining documentation, diagnostics, and core tests.
- In the final message, Laurenz thanked Tom for committing and accepted omission of the postgres_fdw test, while noting that he had reproduced the original failure only with foreign partitions and could not explain that distinction; the feature was landed with no further patch pending #28.