Postgresql Create Function Return Array