model-writtenrun 2942 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Yuto Sasaki reported that ECPG-generated connection strings could leave spaces after keepalives values, causing connection failures, and proposed using the shared integer parser with an ECPG regression test #1.
- Fujii Masao questioned ECPG's insertion of spaces, while Tom Lane and Michael Paquier agreed that keepalives should use the same integer parser as other options; Fujii then demonstrated that ECPG and libpq treated spaces before parameter names differently #2 #3 #4 #5.
- Tom committed Sasaki's keepalives fix as 47d8a15dea, omitting the proposed tests and removing redundant error reporting, with backports to supported branches; he treated potential ECPG cleanup as a separate issue #6.
- Michael proposed an independent libpq patch that trims surrounding spaces in URI components and rejects unescaped internal spaces, placing the logic in conninfo_uri_decode() to cover special option handling consistently and proposing development-branch-only treatment #7.
- Tom traced ECPG's added spaces to cat_str() and supplied a separate make3_str() fix, while explaining that runtime space skipping must remain compatible with applications compiled by older preprocessors #8.
- Michael endorsed the ECPG fix and justified libpq's change as consistency between parameter names and values; Tom proposed committing both remaining patches only on the development branch, and Yuto reported successful testing of Michael's URI patch #9 #10 #11.
- Tom's ECPG patch landed as f22e84df1d with an added compatibility comment, and Michael's URI patch landed as 430ce189fc with refined tests and an additional malformed parameter-name case; Michael confirmed both landings #13.
- After the URI commit, Fujii reported that an application_name value containing an unescaped internal space now failed and suggested simplifying the space-skipping loops #14.
- Michael responded that embedded spaces should be encoded as %20 and accepted the loop simplification in principle; all three fixes had landed, but the thread ended without an attached follow-up patch or a recorded resolution beyond that explanation #15.