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)
Here's a toy implementation:
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.