postgres supports multi dimensional arrays, however the length is restricted.
CREATE TABLE test (
field1 text[][]
);
INSERT INTO test VALUES ('{{null, null}, {foo, null}, {foo, bar}}');
this works fine, but if I do
INSERT INTO test VALUES ('{{}, {foo}, {foo, bar}}');
this gives an error 'malformed array literal: "{{}, {foo}, {foo, bar}}"'. Can I do something like the above but without errors?