Skip to content

PostgreSQL: Support ONLY in CREATE INDEX - #2816

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/pg-partitioned-index-dump
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
upstream/pg-partitioned-index-dump

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

pg_dump writes CREATE INDEX orders_note_idx ON ONLY d.orders USING btree (note) for every index on a partitioned table, and it failed with Expected: a list of columns in parentheses, found: orders.

CreateIndex gains an only flag, parsed under the dialects that already accept the ONLY inheritance marker on table factors (supports_table_inheritance_markers), so a table named only still parses in the others.

https://www.postgresql.org/docs/current/sql-createindex.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.11%. Comparing base (d1c1790) to head (774c2c5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2816   +/-   ##
=======================================
  Coverage   83.10%   83.11%           
=======================================
  Files          42       42           
  Lines       36294    36301    +7     
  Branches    36294    36301    +7     
=======================================
+ Hits        30163    30172    +9     
  Misses       2636     2636           
+ Partials     3495     3493    -2     

☔ 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-partitioned-index-dump branch from 554264b to 007e32a Compare November 4, 2026 11:36
@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/pg-partitioned-index-dump branch from 007e32a to 774c2c5 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