Postgres Function Select Into Array Behavioral Log