Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Multi-dimensional columns

$
0
0
Hi guys

I'm a little confused about creating multi-dimensional columns.

Is the two CREATE TABLE statements below the same?

CREATE TABLE t_test ( id BIGSERIAL, sa1 text[]);

CREATE TABLE t_test ( id BIGSERIAL, sa1 text[][]);

sa1 is declared one-dimensional in the first and two-diamensional in the second.

BUT taking a pg_dump of the two-dimensional sa1 is ONLY showing up as one-dimensional?

Using pgAdmin also shows the two-dimensional sa1 as one-dimensional.

Only EMS SQL Manager is showing sa1 as a two-dimensional.

My question is: is there no need to declare an array as multidimensional? can you just use a single-dimensional array as a multi-dimensional?


Kind regards, Ole

Viewing all articles
Browse latest Browse all 13329

Trending Articles