In postgres, how can I query whether a columns contains int[][] (as opposed to int[]?)
I can query for information about the types of columns:
select *
from INFORMATION_SCHEMA.COLUMNS where table_name = 'mytable'
and I see udt_name and data_type jointly provide the base type of the columns. But none of these columns say what the arity of an array column is (arity would be 2 for int[][] and 1 for int[], and zero for int).
Postgres clearly has this information as I can see it if I view a table's schema in pgadmin3.