Waiting for PostgreSQL 18 – Allow NOT NULL constraints to be added as NOT VALID
Read OriginalThe article details a new feature in PostgreSQL 18 that allows NOT NULL constraints to be added as NOT VALID. This enables adding the constraint without scanning the entire table, and validating it later without holding an ACCESS EXCLUSIVE lock, improving performance and reducing downtime. It explains the catalog changes, internal tuple descriptor updates, and how pg_dump handles these new constraints.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser