How to make column with ARRAY(Integer) type, where each integer is primary key from some other table? If it's impossible, how to achieve similar table relationships with other method?
1 Answer
As of PostgreSQL 9.3, this is not implemented, see http://blog.2ndquadrant.com/postgresql-9-3-development-array-element-foreign-keys/ One should turn array into other table.
1 Comment
KR32
[link] (stackoverflow.com/a/68275664/12263918 ) Using PostgreSQL array to store many-to-many relationship