Postgresql Declare Variable In Function In Excel