Databases: How to select multiple values into an array and loop through? (postgres 9.3)?

Published --