postgresql pass array in function
-- Definition
CREATE FUNCTION my_method(INT[]) RETURNS VOID AS $$
...
END $$ LANGUAGE plpgsql;
-- Use
SELECT my_method(ARRAY [1,2,3,4])
-- The reference (stackoverflow answer) defines two other methods to do this