Postgres Stored Procedure Declare Array Bash