(no title)
evangow | 2 years ago
- Support for arrays of foreign keys. This one has been worked on a couple of times but hasn't made it into a release. https://commitfest.postgresql.org/17/1252/ - I think this would be an absolutely phenomenal way of handling sorting, instead of having to use linked lists and CTEs or some type of "order/position" column
- Support for deferring NOT NULL and CHECK constraints to the end of a transaction (just ran into this problem yesterday)
Edit: typos
paulddraper|2 years ago
Standards-wise, the first step would be arrays in general :)
> Support for deferring NOT NULL and CHECK constraints to the end of a transaction
Agreed 100%
zwily|2 years ago
_a_a_a_|2 years ago
meotimdihia|2 years ago
paulddraper|2 years ago
I'm curious how people think this feature should work? ON DELETE SET NULL, ON DELETE CASCADE, something else?
lolive|2 years ago
petereisentraut|2 years ago
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.
evangow|2 years ago