Perm delete job fails for any trashable item that requires locking too many things in the Postgres in a single transaction
Steps to reproduce
- Create a table/database/group with a large number of "children" (for example delete a databse with 50k tables)
- See the perm delete job fail due to it trying to take out locks on all 50k children causing a :
OutOfMemory: out of shared memory
HINT: You might need to increase max_locks_per_transaction.