Make ALTER DOMAIN VALIDATE CONSTRAINT no-op when constraint is already validated
Peter Eisentraut <peter@eisentraut.org>
Author:
Peter Eisentraut <peter@eisentraut.org>
Date: 2026-02-24T09:58:36Z
Releases:
19 (unreleased)
Make ALTER DOMAIN VALIDATE CONSTRAINT no-op when constraint is already validated Currently, AlterDomainValidateConstraint will re-validate a constraint that has already been validated, which would just waste cycles. This operation should be a no-op when the constraint is already validated. This also aligns with ATExecValidateConstraint. Author: jian he <jian.universality@gmail.com> Discussion: https://postgr.es/m/CACJufxG=-Dv9fPJHqkA9c-wGZ2dDOWOXSp-X-0K_G7r-DgaASw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/typecmds.c | modified | +25 −19 |
Discussion
- make ALTER DOMAIN VALIDATE CONSTRAINT no-op when constraint is validated 3 messages · 2025-05-21 → 2026-02-24