model-writtenrun 5727 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Daniel Polski reported that set_config('_foo.bar', 'foo', FALSE) failed on PostgreSQL 14.2 although it worked on 13.5, exposing a regression in custom parameter names #1.
- Japin Li traced the regression to identifier validation that incorrectly allowed underscores only after the first character, contrary to scan.l's identifier rules #2.
- Japin Li submitted a patch moving underscores into the characters accepted at any position and adding a SET/SHOW regression test for custom._my_guc #2.
- Tom Lane confirmed that validation should match scan.l, acknowledged the oversight, and said he would apply the patch in the thread's final message #3.
- Tom Lane subsequently committed Japin Li's fix as bd74c4037c, with a minor character-list adjustment and without the proposed regression tests; the reported bug was fixed.