model-writtenrun 9838 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane submitted #1 to replace CoerceToDomain nodes for unconstrained domains with simpler expressions, while tracking domain dependencies so later constraint changes invalidate affected plans.
- While developing #1, Tom found that an existing domain regression test still failed because PL/pgSQL cached cast expressions without invalidation support, so he included generic CachedExpression infrastructure and made get_cast_hashentry() use it.
- The patch #1 also expanded domain regression coverage, standardized catalog-lock release in ALTER DOMAIN, and switched cached-plan storage to doubly linked lists to avoid linear-time removal.
- Tom left domain-constraint expression caching unchanged apart from an explanatory comment in #1, because mutable domain CHECK constraints are unsupported, and deferred concerns about partitioning expression caches to separate discussion.
- Tom committed the complete patch as 04fe805a17 on December 13, 2018, with only explicit list initialization and an equivalent memory-context argument cleanup; the supplied thread contains no replies or independent reviews.