Iterating over integer[] in PL/pgSQL Iterating over integer[] in PL/pgSQL postgresql postgresql