Search Postgresql Archives

creating array of integer[] out of query - how?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

if I use this statement:

postgres=# select array[[2,3],[3,4]];
     array
---------------
 {{2,3},{3,4}}

-> the result looks for me as an array of integer-arrays

now I try:

select array(
select a from
(
select array[2,3] as a
union

select array[3,4] as a
) x);

and the result is:

FEHLER:  could not find array type for datatype integer[]

Is there a bug in my thinking that array[[2,3],[3,4]] really constitutes an array of integer[],

or is there any cast missing,

or is a bug anywhere else?

Best wishes,

Harald

--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
no fx, no carrier pigeon
-
LASIK good, steroids bad?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux