model-writtenrun 4917 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Xing Guo reported that passing --dbname= without a database name could cause null-pointer dereferences in pg_regress and pg_isolation_regress, with reproductions in #1.
- The attached patch in #1 guarded both launchers' dblist dereferences and substituted an empty database string.
- Tom Lane confirmed the problem in #2 but rejected that fix because running tests in the user's default database could damage valuable data and produce failures in a nonempty database.
- In the thread's final message, #2, Tom Lane proposed treating an absent database list or a zero-length database name as an error.
- Tom Lane subsequently implemented that alternative in d5515ca7cf, adding shared validation that exits with an error, crediting Xing Guo's report, and backpatching the fix to all supported branches.