How to fix Ambiguous function in PostgreSQL | DevErrors