Postgresql Stored Procedure Declare Variable