5 ms·
And now your view is based on an unstable function, so it's impossible to write partial indexes for (very important for performance!) and impossible to use fore
by nightpool 4y ago
And now your view is based on an unstable function, so it's impossible to write partial indexes for (very important for performance!) and impossible to use foreign keys with. Just add a check constraint that deleted at is never in the future and move on with your life. If you really, really need to schedule a delete, make it its own concern (UserVersions table with applicable_at?), don't mix it with your soft delete logic.