Skip to content

PostgreSQL: Support ALTER INDEX ATTACH PARTITION - #2817

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/pg-alter-index-attach-partition
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/pg-alter-index-attach-partition

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

pg_dump follows each partition index of a partitioned table with ALTER INDEX d.orders_note_idx ATTACH PARTITION d.p0_note_idx, which failed with Expected: RENAME after ALTER INDEX, found: ATTACH. AlterIndexOperation gains an AttachPartition variant beside RenameIndex, parsed in every dialect as RENAME TO already is.

https://www.postgresql.org/docs/current/sql-alterindex.html

@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.12%. Comparing base (d1c1790) to head (c324b2b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2817      +/-   ##
==========================================
+ Coverage   83.10%   83.12%   +0.01%     
==========================================
  Files          42       42              
  Lines       36294    36303       +9     
  Branches    36294    36303       +9     
==========================================
+ Hits        30163    30177      +14     
+ Misses       2636     2631       -5     
  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.

@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/pg-alter-index-attach-partition branch from 5edaa43 to 96c92ef Compare November 4, 2026 11:36
@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/pg-alter-index-attach-partition branch from 96c92ef to c324b2b Compare November 4, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants