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

Поиск
Список
Период
Сортировка
От Massa, Harald Armin
Тема creating array of integer[] out of query - how?
Дата
Msg-id e3e180dc0909020134n7a654a75s2172b08a487c45d0@mail.gmail.com
обсуждение исходный текст
Ответы Re: creating array of integer[] out of query - how?  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: creating array of integer[] out of query - how?  (Sam Mason <sam@samason.me.uk>)
Список pgsql-general
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?

В списке pgsql-general по дате отправления:

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: PostgreSQL Live CD based on CentOS 5.3 and PG 8.4 released
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: creating array of integer[] out of query - how?