model-writtenrun 8167 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Lakhin reported that psql -W ignores the prompted password when a connection string supplies one, whereas the prompt overrides PGPASSWORD, demonstrating inconsistent-looking precedence in #1.
- Tom Lane explained that -W forces a prompt regardless of whether its result is used in #2; David G. Johnston challenged the documentation's ambiguity in #3, and Tom agreed to clarify it in #4.
- Tom Lane posted a psql documentation patch explaining connection-string precedence and unconditional prompting in #5, preferring a general precedence rule over explicitly documenting passwords placed on the command line.
- David G. Johnston argued for explicitly explaining password-source precedence in #6, and Alexander Lakhin demonstrated that service-file passwords also override prompted input in #7; the eventual patch retained the general explanation.
- Bruce Momjian resumed the work in September, extending Tom Lane's documentation changes across eleven utility reference pages and proposing backpatching to all supported versions in #8.
- Oleksandr Shulgin questioned the extra connection attempt and suggested a password callback in #9; Bruce Momjian cited waiting backends in #10, while Tom Lane emphasized libpq API complexity in #11, and no callback implementation followed.
- Tom Lane identified spelling errors and requested definite precedence wording in #12; Bruce incorporated that wording in #13, although three spelling errors remained, and David G. Johnston subsequently expressed approval in #14.
- Bruce Momjian committed #13 unchanged apart from rebasing as 1a9388bd0f and announced application to all supported versions in #15.
- Justin Pryzby reported the surviving spelling errors in #16, leading to the three-page correction b8b6a0124b; Bruce confirmed the fix in the thread's final message #17, leaving the documentation work landed with no outstanding patch.