How to fix Cannot attach partition in PostgreSQL | DevErrors