model-writtenrun 7224 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Masahiko Sawada reports Drew Callahan's discovery that concurrent ALTER TYPE can make logical decoding omit a newly added composite attribute, and attaches an isolation-test reproducer in #1.
- Masahiko Sawada explains that historical snapshots advance without distributing concurrent transactions' cache invalidations, and proposes distributing those invalidations rather than clearing every cache whenever a snapshot changes in #1.
- Amit Kapila favors distributing only the necessary invalidations because wholesale cache invalidation could burden mixed DDL/DML workloads in #2; the supplied thread ends there without an implementation patch or resolution of which invalidations to distribute.
- The later fix 0434033e8b, credited to Shlok Kyal and Hayato Kuroda, comes from the implementation patchset #586345 in thread #48750, superseding the previous attribution to this thread's discussion; it distributes invalidations alongside catalog snapshots and adds an ALTER PUBLICATION regression test rather than adopting the attached ALTER TYPE test.
- The commit message accepts the performance cost for frequent publication DDL to prevent data loss, rejects stronger table locking as incomplete and impractical for database-wide publications, and records backpatching through PostgreSQL 14 while the PostgreSQL 13 fix remains under discussion in 0434033e8b.