Postgresql Create Procedure Declare Variable Bash