model-writtenrun 2481 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Brazeal reported that strtol() calls in spell.c checked errno without clearing it first, potentially causing false errors #1.
- His patch added errno = 0 before four affected calls in src/backend/tsearch/spell.c #1.
- Tom Lane agreed that checking errno without first clearing it was incorrect and observed inconsistent error checking around related conversion functions #2.
- Tom wondered whether dictionary-file I/O prevented the failure in practice, but found no obvious explanation for the absence of reports and agreed to commit the latent bug fix #2.
- The patch landed unchanged as 7fb8801021, with backpatching through PostgreSQL 13 and no outstanding revisions.