model-writtenrun 3943 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- The report in #1 demonstrated with pageinspect that inserting a short varchar into a STORAGE PLAIN column still produced a single-byte header, and Laurenz Albe proposed deleting the contrary documentation claim in #2.
- Tom Lane initially considered this a code bug: his investigation in #3 and #5 showed INSERT forming a tuple with the source slot's default storage settings instead of the destination relation's settings, while UPDATE appeared to work correctly.
- Andres Freund reproduced the issue back to PostgreSQL 10 in #4 and explained in #6 and #8 that slot copying and projection decisions assume compatible tuple descriptors, while target lists do not carry storage settings; enforcing the restriction would require broader tracking or additional tuple processing, as explored in #9.
- Andres favored documenting the existing behavior in #8, and Tom clarified in #11 that types intrinsically marked PLAIN remained protected, although compressed inline values might also bypass column-level restrictions; Laurenz nevertheless leaned toward the simplest consistency-restoring code fix in #12.
- When Bruce Momjian revived the discussion in September, Laurenz still expected a code fix in #14, but Tom favored changing documentation in #15 because changing longstanding behavior risked new problems and asked that code comments also be checked.
- Bruce moved the discussion to pgsql-hackers and traced the source-slot behavior in #16, then concluded in #17 that internal callers still required the existing packing checks and that documentation plus explanatory comments was the appropriate fix.
- Bruce's patch in #18 retained Laurenz's documentation deletion and added comments explaining the tuple-descriptor distinction in heaptuple.c, with a cross-reference in rangetypes.c; it changed no executable behavior.
- The supplied candidates 55ce8fc399 and 989adace3f represent the same change on different branches and both preserve #18 without substantive edits.
- Bruce confirmed application to all supported versions in #19, completing the documentation correction; the broader concerns about enforcing storage restrictions and handling compressed inline values received no code fix in this thread.