Using PostgreSQL 9.6 I can create a column with type 'not-null-array of string' with:
CREATE TABLE example (
foo TEXT[] NOT NULL
);
but this allows the elements to be null, i.e I can do:
INSERT INTO example VALUES('{NULL}')
Is there a way to instead create a column with type 'not-null-array of not-null-string'? I'd like something like this:
CREATE TABLE example (
foo (NOT NULL TEXT)[] NOT NULL
);
but it's not syntactically valid. Is there a valid way to express this?