Declare Variable In Postgresql Function Call