News for hackers. Stuff that matters.
Re:What's Coming in PostgreSQL 9.5 by NickNameNick on Thursday July 02, 2015 @08:40PM (#9822687)
How do you manage referential integrity?

If you have 2 tables, A and B, where B references A Ideally I couldn't set deleted on row in A until all the rows in B that reference it have also been set to deleted.

If I wasn't using soft deletes, I'd just use a foreign key from B (a_id) to A (a_id), but with soft-deletion, that constraint doesn't get enforced.

Re:What's Coming in PostgreSQL 9.5 by 15155 on Thursday July 02, 2015 @09:49PM (#9822939)
Use Datomic, unfortunately.

This problem is pervasive, and it's not easy to solve.

Re:What's Coming in PostgreSQL 9.5 by koide on Friday July 03, 2015 @10:09AM (#9825659)
An on update trigger, would be my first thought...