Skip to content

Report unsupported ALTER CONSTRAINT explicitly - #8808

Draft
ibrahim halatci (ihalatci) wants to merge 4 commits into
mainfrom
ihalatci-pg19-explicit-alter-table-errors
Draft

Report unsupported ALTER CONSTRAINT explicitly#8808
ibrahim halatci (ihalatci) wants to merge 4 commits into
mainfrom
ihalatci-pg19-explicit-alter-table-errors

Conversation

@ihalatci

Copy link
Copy Markdown
Contributor

Draft partial fix for #8758.

This makes ALTER TABLE ... ALTER CONSTRAINT fail with a stable FEATURE_NOT_SUPPORTED error and detail explaining that Citus does not propagate constraint property changes to shards. It also tags the existing unsupported DETACH PARTITION CONCURRENTLY/FINALIZE paths with FEATURE_NOT_SUPPORTED.

Important limitation: I did not include MERGE PARTITIONS / SPLIT PARTITION cases because this post-merge source checkout has no corresponding AT_* enum identifiers or grammar strings. That part needs to be rechecked against the exact PostgreSQL 19 parser API before adding cases.

Make ALTER TABLE ... ALTER CONSTRAINT fail with a stable FEATURE_NOT_SUPPORTED error and a detail explaining that Citus does not propagate constraint property changes to shards. Also tag the related DETACH PARTITION unsupported paths with FEATURE_NOT_SUPPORTED.

Refs #8758

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 61c1aeb4-1b56-4313-a35e-d65b59a557de
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.70%. Comparing base (ca8e66a) to head (d874fa3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8808      +/-   ##
==========================================
- Coverage   88.72%   88.70%   -0.02%     
==========================================
  Files         289      289              
  Lines       65073    65075       +2     
  Branches     8203     8202       -1     
==========================================
- Hits        57739    57728      -11     
- Misses       4967     4981      +14     
+ Partials     2367     2366       -1     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Refs #8758

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 61c1aeb4-1b56-4313-a35e-d65b59a557de
Refs #8758

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 61c1aeb4-1b56-4313-a35e-d65b59a557de
Refs #8758

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 61c1aeb4-1b56-4313-a35e-d65b59a557de
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants