I faced the same. But an array in my case is created via array_agg
function. And fortunately it allows to aggregate DISTINCT values, like:
array_agg(DISTINCT value)
This works for me.
More Related Contents:
- What is PostgreSQL equivalent to autoincrement?
- How do I specify a password to ‘psql’ non-interactively?
- INSERT with dynamic table name in trigger function
- psql: FATAL: Ident authentication failed for user “postgres”
- Use multiple conflict_target in ON CONFLICT clause
- PostgreSQL -must appear in the GROUP BY clause or be used in an aggregate function
- How to find table creation time?
- What is the format for the PostgreSQL connection string / URL?
- Where does PostgreSQL store the database?
- How to add “on delete cascade” constraints?
- Is there a way to disable function overloading in Postgres
- Grant all on a specific schema in the db to a group role in PostgreSQL
- Can I make a plpgsql function return an integer without using a variable?
- Migrate database from Postgres to MySQL [closed]
- How can I start PostgreSQL on Windows?
- PostgreSQL – max number of parameters in “IN” clause?
- SQLAlchemy, Psycopg2 and Postgresql COPY
- Why can I create a table with PRIMARY KEY on a nullable column?
- Oracle SQL Developer and PostgreSQL
- PostgreSQL array of elements that each are a foreign key
- How to reset sequence in postgres and fill id column with new data?
- How do you find the disk size of a Postgres / PostgreSQL table and its indexes
- no pg_hba.conf entry for host
- PostgreSQL – disabling constraints
- PostgreSQL authentication method 10 not supported
- PostgreSQL INSERT ON CONFLICT UPDATE (upsert) use all excluded values
- Hashing a String to a Numeric Value in PostgreSQL
- Spring Docker container cannot access Postgres Docker container
- Format specifier for integer variables in format() for EXECUTE?
- PostgreSQL composite primary key