How to fix Triggered action exception in PostgreSQL | DevErrors