model-writtenrun 5273 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Japin Li reported that oversized varchar length declarations produced different errors depending on whether the value exceeded the integer range in #1.
- Tom Lane explained in #2 that generalizing the grammar would still produce confusing errors and could worsen error-cursor placement, leaving the grammar change unpursued.
- Japin Li proposed documenting the missing length limit in #3; after initially questioning its usefulness in #4, Tom Lane corrected his reading of the number and supported documenting the 10 MiB declaration limit separately from unconstrained string limits in #5.
- Dagfinn Ilmari Mannsåker confirmed the historical origin of the deliberate 10 MiB MaxAttrSize limit in #6.
- After a nine-month gap, Bruce Momjian supplied the documentation patch in #7, stating that an explicit char/varchar length must be positive and cannot exceed 10485760.
- Bruce Momjian committed that patch with a small wording clarification as 62c49fca13 and confirmed backpatching through PostgreSQL 10 in #8, closing the thread with the documentation change applied.