model-writtenrun 9304 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Michael Paquier reported that running regression tests with PGOPTIONS="-fh" appeared to hang in hash-join tests introduced in PostgreSQL 11; Thomas Munro traced this to a nested-loop plan joining two 20,000-row tables with a severe cardinality underestimate #1 #2.
- Michael proposed removing regressplans.sh because its forced planner choices routinely produce regression differences, but Tom Lane defended its usefulness for finding crashes and incorrect results through manual inspection and recommended overriding disabled hash joins in the dedicated tests #3 #4 #5.
- Michael posted a patch enabling hash joins at session scope, while Thomas explained that individual tests deliberately changed only the planner settings needed for their intended execution paths #6 #7.
- Thomas agreed to enable hash joins for the dedicated test script and the corresponding PostgreSQL 11 tests; Michael requested limiting the setting's scope, and Tom recommended SET LOCAL within the existing transaction #10 #11 #12.
- Thomas took responsibility for the fix and committed Michael's patch with transaction-local scope and without its added comment as cba0fe024e, with backports through PostgreSQL 11 #13 #6.
- After the fix landed, Melanie Plageman proposed post-processing regression results to tolerate row-order differences; Amit Kapila described the need for zheap, and Michael noted that adding ORDER BY could itself change the plans being tested #15 #17 #18.
- Melanie identified Greenplum's gpdiff and atmsort tools, and Tom favored optional post-processing that would preserve existing heap tests and the ability to test queries without ORDER BY #19 #20.
- Ashwin Agrawal reported adapting those tools for Zedstore and testing them with regressplans.sh, including ignoring EXPLAIN output differences, and promised a later patch; the thread ended with the hash-join fix landed and Michael welcoming the separate tooling work for PostgreSQL 13, but no tooling patch was submitted here #21 #22.