model-writtenrun 10551 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Stephen Froehlich asked whether CREATE TABLE LIKE INCLUDING ALL preserved extended statistics when creating hypertable partitions in #1, and Tom Lane confirmed that it did not in #2.
- David Rowley supplied the initial implementation in #5, adding an explicit INCLUDING STATISTICS option alongside INCLUDING ALL, generating nonconflicting statistics names, and copying comments when requested.
- Tels questioned the option ordering in #6, Tom Lane requested consistent ordering in #8, and David Rowley's revisions added the missing syntax-synopsis option in #7 and alphabetized the enum, grammar, and ALL expansion in #12.
- Tom Lane initially regarded the change as a new feature in #8, while Tomas Vondra and David Rowley argued that it repaired an omission in #10 and #11; David G. Johnston supported backpatching the recently introduced feature despite compatibility concerns in #13.
- After entering the March commitfest in #14, David Rowley refreshed the patch against intervening changes in #16, and Alvaro Herrera endorsed treating it as a backpatchable bug fix in #17.
- Tomas Vondra reviewed the refreshed implementation and supplied a fix-up in #18 that completed synopsis ordering, added comments, moved statistics processing after constraints, made the cloning helper private, and replaced an append loop with list_copy.
- Tomas Vondra also raised automatic statistics cloning for partitions in #18, but Alvaro Herrera classified that as a separate feature in #19, and Tomas agreed to keep it outside this fix in #20.
- Alvaro Herrera traced 40 regression-test errors to the fix-up's list_copy replacement and determined that list_concat was required to preserve existing commands in #21.
- Alvaro Herrera committed David Rowley's implementation plus Tomas Vondra's fix-up as 5564c11815, adding node-field handling and local correctness cleanups; his announcement in #22 confirmed landing on master and PostgreSQL 10, with statistics-comment cloning reserved for PostgreSQL 11 to avoid changing a stable-branch parse node.
- David Rowley noticed that the list_concat helper still claimed to copy the list in #23, and Alvaro Herrera confirmed correcting that comment in #24, leaving the requested fix landed and partition-statistics propagation outside this thread's implementation.