Postgresql Function Return Setoff