News for hackers. Stuff that matters.
Re:Soft deletion probably isn't worth it by smallnamespace on Tuesday July 19, 2022 @03:57PM (#32157107)
If you're using PostgreSQL, you can implement cascading soft-deletes yourself.

The information schema table holds all foreign key relationships, so one can write a generic procedure that cascades through the fkey graph to soft-delete rows in any related tables.

Re:Soft deletion probably isn't worth it by BeefySwain on Tuesday July 19, 2022 @04:35PM (#32157597)
Could someone take a stab at an example of what this would look like? Sounds really interesting.
Re:Soft deletion probably isn't worth it by NoInkling on Thursday July 21, 2022 @11:11AM (#32180340)
Here's an interesting approach using rules: https://evilmartians.com/chronicles/soft-deletion-with-postg...
Re:Soft deletion probably isn't worth it by smallnamespace on Tuesday July 19, 2022 @10:55PM (#32160811)