Is there a possibility to add a check constraint to ensure the length of the elements in a text[] in postgres?
I want each element to have a length of 2 characters (country iso code).
Usecase: it's a filter. The entity saved in that row should only be active in the countries included in that array.