Skip to content

PostgreSQL: Support INHERIT in ALTER TABLE - #2813

Merged
LucaCappelletti94 merged 2 commits into
mainfrom
upstream/pg-alter-table-inherit
Nov 4, 2026
Merged

LucaCappelletti94 merged 2 commits into
mainfrom
upstream/pg-alter-table-inherit

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

ALTER TABLE c INHERIT parent failed with Expected: ADD, RENAME, PARTITION, SWAP, DROP, REPLICA IDENTITY, SET, or SET TBLPROPERTIES after ALTER TABLE, found: INHERIT, although PostgreSQL documents it as an action of ALTER TABLE and ALTER FOREIGN TABLE.

It now parses into AlterTableOperation::Inherit, which holds the parent table name. Being an ordinary action, it combines with others in one statement, and ALTER FOREIGN TABLE gets it through the shared action parser.

@codecov-commenter

codecov-commenter commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.10%. Comparing base (875603d) to head (6a0428e).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2813   +/-   ##
=======================================
  Coverage   83.10%   83.10%           
=======================================
  Files          42       42           
  Lines       36285    36289    +4     
  Branches    36285    36289    +4     
=======================================
+ Hits        30154    30158    +4     
  Misses       2636     2636           
  Partials     3495     3495           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@s5dsn-eqee s5dsn-eqee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/pg-alter-table-inherit branch from 5623b29 to 6a0428e Compare November 4, 2026 11:39
@LucaCappelletti94
LucaCappelletti94 added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit cca417d Nov 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants