News for hackers. Stuff that matters.
Re:PostgreSQL and SQL:2023 by petereisentraut on Saturday June 03, 2023 @08:07AM (#36175956)
> - Support for deferring NOT NULL and CHECK constraints to the end of a transaction (just ran into this problem yesterday)

I'm curious what the use case of this is?

Deferrable constraints are usually considered for foreign keys, since there you might have to juggle updates to multiple tables and might violate the constraint in the intermediate states. But that doesn't appear to apply in that way to CHECK constraints.

Re:PostgreSQL and SQL:2023 by evangow on Tuesday June 06, 2023 @04:16PM (#36218537)
2 tables that reference each other and the foreign key columns both have a NOT NULL constraint.