How to fix Cannot detach partition in use in PostgreSQL | DevErrors