model-writtenrun 2552 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhang Mingli proposed CREATE FOREIGN TABLE LIKE to avoid manually duplicating wide local-table definitions for ETL #1; after Álvaro Herrera suggested IMPORT FOREIGN SCHEMA #2, Zhang explained that Kafka and other FDWs may not support schema import #3, and Álvaro and Michael Paquier supported the proposal #4 #6.
- The first patch copied column definitions and supported properties while ignoring INDEXES and COMPRESSION #7; Zhang deferred broader inconsistencies between foreign-table storage and compression behavior to a separate discussion.
- Álvaro initially favored errors for explicitly requested unsupported options #8, then accepted silent omission because existing LIKE behavior already ignores inapplicable options #9, which Zhang confirmed as the intended convention #10.
- Zhang fixed duplicate documentation identifiers that broke the documentation build #12, then Sami Imseih identified problems with copying IDENTITY and STORAGE and recommended excluding both while leaving broader CREATE FOREIGN TABLE inconsistencies to separate work #13.
- Zhang added the IDENTITY and STORAGE exclusions and tests #14, corrected a remaining wording issue #16, and received Sami's approval and a replacement patch with further documentation wording edits #17.
- Michael requested simpler INCLUDING ALL and EXCLUDING ALL tests plus primary-key coverage proving that NOT NULL constraints survive without indexes #18; Zhang implemented those changes using his earlier patch as the base, without retaining Sami's documentation rewrite #19.
- Michael withdrew a proposed comment about dependencies between transformation and expansion, requested removal of redundant documentation about ignored options, and asked for a SQL-compatibility note #20; Zhang incorporated those changes #22 and resent the identical patch #23.
- Michael committed 302cf15759 from #23 with light edits: polished comments and compatibility wording, a nondefault source STORAGE setting, and direct catalog checks for compression because foreign-table descriptions do not display it, as explained in #24.
- Zhang acknowledged that consolidating the tests had lost the storage distinction #25, and Michael closed by inviting further reports #26; the feature was fully committed, with no remaining patch in this thread.