According to https://dba.stackexchange.com/a/307373/156984, both text[]
and text[][]
have the same internal type _text
.
If the internal type of both is the same, how can I then actually differentiate them?
SELECT * FROM pg_type;
just returns one row, representing both types. I would expect it to return two, one for text[]
and one for text[][]
.
EDIT:
The reason I need this information is that i kind of want to reverse engineer text[]
or text[][]
from _text
to then send the type information as a String to a client.