I create in the posgresovskaya table a numeric field of type array:
CREATE TABLE aaa ( test int[][] );
This insertion is done without problems:
INSERT INTO aaa (test) VALUES ('{{4,5,7,9}}'), ('{{2},{3},{4}}'), (NULL), ('{8,9}');
There is a strong desire to perform an insert:
INSERT INTO aaa (test) VALUES ('{{1},{3},{2},{},{}}'), ('{{1},{4,5,8},{},{},{}}'), ('{{1},{6},{},{},{}}'), ('{{1},{7,9},{},{},{}}');
... but an error is returned: "for multidimensional arrays, nested definitions must be specified according to the dimension" :
I can not figure out how to do it. I also cannot understand the logic of PostgreSQL regarding arrays. I would be grateful for both correcting the code and explaining why the lines from the first example are written with INSERT, but not from the last.