Jan 2020

2 commits
Clarify behavior of adding and altering a column in same ALTER command.
21 Jan 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surewritten from the discussion, no matching patch

Implements Tom Lane's conclusion in #23 that later DEFAULT or GENERATED changes should not affect values supplied by ADD COLUMN to existing rows; no attachment contains this follow-up. The commit adds alter_table.sgml documentation, identity regression coverage, and ATExecAddColumn comments plus a RELKIND_HAS_STORAGE check.

Restructure ALTER TABLE execution to fix assorted bugs.
15 Jan 2020Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1
LLM analysis, 100% surelanded as postedfrom patchset #180 of 2 reviewers saw the final version

Applying #18 to the commit's parent reproduces eleven changed files exactly, including all regression tests and src/backend/parser/parse_utilcmd.c. The remaining differences in src/backend/commands/tablecmds.c and src/backend/tcop/utility.c are indentation, whitespace, and comment wrapping only.

  • Robert Haassaw an earlier versionLLM analysis, 88% sureIdentified the recursive AlterTable-to-ProcessUtility call as a layering problem in #2 and explained the parse-tree/execution concern in #4, before the substantial redesign in #15.
  • Movead.Lisaw an earlier versionLLM analysis, 99% sureApplied and tested #1, reporting successful identity-column behavior and continued creation of an unwanted serial sequence in #6, before the substantial redesign in #15.

Credits across 2 commits

Author
Tom LaneLLM1
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.