Postgresql 无法识别postgreql二维数组文字

Postgresql 无法识别postgreql二维数组文字,postgresql,Postgresql,在postgresql中,执行 select pg_typeof('{{"a","b",NULL},{"c","d",NULL},{"e","f",NULL}}'::varchar[][]); 输出是 pg_typeof --------------------- character varying[] 同样地 select pg_typeof(

在postgresql中,执行

select pg_typeof('{{"a","b",NULL},{"c","d",NULL},{"e","f",NULL}}'::varchar[][]);
输出是

      pg_typeof      
---------------------
 character varying[]

同样地

select pg_typeof(array[array['a','b',NULL],array['c','d',NULL],array['e','f',NULL]]);
将输出

 pg_typeof 
-----------
 text[]

为什么它被认为是一维数组?

这是正常的。所有维度(和基数)的数组都具有相同的类型。您可以使用
array\u dims
访问特定数组值的当前维度。这是为什么?在我看来,postgres中多维数组的实现非常奇怪