By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
| name | pay_by_quarter | schedule |
|---|---|---|
| name1 | {1,2,3} | {{11,12},{21,22}} |
INSERT 0 1
| pay_by_quarter_dim | schedule_dim |
|---|---|
| 1 | 2 |
SELECT 1
ERROR: function array_ndims(text) does not exist LINE 3: select case when false then array_ndims(name) end from sal_e... ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts.
CREATE FUNCTION
| column_name | column_type | array_dimension |
|---|---|---|
| sal_emp | text | null |
| sal_emp | integer[] | 1 |
| sal_emp | text[] | 2 |
SELECT 3