Skip to content

fix(postgres): surface check refusals as actionable validation errors - #262

Merged
rrrodzilla merged 4 commits into
mainfrom
fix/postgres-check-violation
Oct 13, 2026
Merged

rrrodzilla merged 4 commits into
mainfrom
fix/postgres-check-violation

Conversation

@rrrodzilla

@rrrodzilla rrrodzilla commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

PostgreSQL can reject a write after admission when a CHECK constraint or transactional quota trigger fires. Preserve SQLSTATE 23514 as the existing validation error through both ordinary and revision-guarded mutations, including the named constraint and database message, so callers receive actionable HTTP 422 feedback. Uniqueness, foreign-key and transport classifications remain unchanged.

Native PostgreSQL regressions cover named/unnamed violations and HTTP POST/PATCH/PUT refusals with unchanged entity data and revision. A portable classification test covers the conditional HTTP boundary. Patch versions are CLI 0.52.5, PostgreSQL 0.18.1 and Acton 0.50.4; no schema migration or dependency addition is required.

Validation passed: formatting; PostgreSQL cargo check; 108 portable PostgreSQL tests; 1,127 PostgreSQL consumer tests; two focused native database/HTTP regressions; all-target strict clippy; and all 15 required CI checks, including all native PostgreSQL contracts and other backend compatibility gates.

@rrrodzilla
rrrodzilla marked this pull request as ready for review October 13, 2026 17:26
@rrrodzilla
rrrodzilla merged commit be7f007 into main Oct 13, 2026
15 checks passed
@rrrodzilla
rrrodzilla deleted the fix/postgres-check-violation branch October 13, 2026 17:29
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.

1 participant