Probabilmente hai la progettazione del database sbagliata. https://www.postgresql.org/docs/9.1/static/arrays .html