>>>>> "Shay" == Shay Rojansky <roji(at)roji(dot)org> writes:
>> This is intentional: all empty arrays are alike, with zero
>> dimensions (not one dimension, but none).
Shay> Also, note that when reading an empty array in binary encoding,
Shay> the dimension field contains one.
Nope:
postgres=# select array_send('{}'::integer[]);
array_send
----------------------------
\x000000000000000000000017
(that's ndim=00000000, flags=00000000, element_oid=00000017)
--
Andrew (irc:RhodiumToad)