model-writtenrun 8738 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tomas Vondra proposed ALTER TYPE storage changes to let existing custom types gain TOAST support without dump/restore or direct catalog edits, while identifying shortcomings in his initial safety check #1.
- Tom Lane explained that scanning attributes could not safely establish that toasted values were absent, so Tomas revised the patch to forbid transitions back to PLAIN; cascading changes to table columns was deferred because of complexity and locking concerns #2 #3 #4 #6.
- Motivated also by adding binary I/O to existing extension types, Tom replaced the specialized syntax with ALTER TYPE SET (property = value), added binary I/O changes and dependency maintenance, and proposed restricting direct changes to base types while preserving domain inheritance; Tomas agreed #7 #8.
- Tom then implemented propagation to dependent domains and added typmod I/O and ANALYZE support, bundling two OPAQUE-removal prerequisites from separate work for CI; basic text I/O replacement and other type properties were left out because their usefulness was unclear or their implementation had additional hazards #9.
- Tom discovered that typcache retained storage information indefinitely and temporarily addressed that by caching only packability and forbidding promotion from PLAIN, also documenting races involving concurrently created domains #10 #11.
- David G. Johnston questioned the storage and compression semantics and requested documentation spelling out the storage-code abbreviations #12.
- Tomas objected that forbidding promotion from PLAIN removed his original use case, and he and Tom agreed that proper cache invalidation was the appropriate solution #13 #14 #15.
- Tom supplied a standalone revision that invalidated and reloaded cached pg_type information, restored superuser promotion from PLAIN, and reused the existing invalidation machinery to limit overhead #16 #17.
- Tomas requested uppercase SEND and RECEIVE in the documentation example, and Tom committed the final patch with that correction, additional documentation polish and cache-flag renumbering as fe30e7ebfa, confirming the landing in #19 #18.
- The thread ended with the feature landed and Tom clarifying that TOAST-capable types support the different compression and storage strategies through correct detoasting; he also confirmed David's catalog-documentation request was addressed, while declining the additional storage-TOAST documentation change #20.