model-writtenrun 8603 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tushar reported that dumping and restoring the generated-column regression database produced invalid ALTER COLUMN SET DEFAULT statements, including a column-reference error, in #1.
- Masahiko Sawada isolated two inheritance cases and submitted a preliminary patch forcing generated columns into CREATE TABLE output in #2.
- Sawada reconsidered that approach and replaced it with a guard in dumpAttrDef() that skips separate default statements for generated columns, arguing that inheritance or local column definitions already supply their expressions, in #3.
- The thread ended with the revised proposal still lacking regression tests: Sawada said the pg_dump TAP tests appeared not to check whether dumped SQL could be restored without errors in #3.
- The linked commit 086ffddf36 subsequently fixed related generated-column inheritance DDL rules, but its source was the later patchset #449530 in thread #41613, rather than either pg_dump patch submitted here.