Postgres Call Function Within A Function Can Only Be Represented