Array of Arrays of int

Поиск
Список
Период
Сортировка
От Leo Fink
Тема Array of Arrays of int
Дата
Msg-id 178c0af58f0514c54835d2e0723c525a@gmx.net
обсуждение исходный текст
Ответы Re: Array of Arrays of int  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Why does

select array(select array[1,2]);

give me an error: "could not find array type for data type integer[]"?

Is there a type-cast missing, or is this generally impossible? I was 
expecting something like

{{1,2}}

In my real-world application, the subquery returns more than one pair 
of ints, but I think it all boils down to this simpler example. I am 
using version 7.4 of PostgreSQL.

Thanks a lot,
Leo



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

Предыдущее
От: Enrico Weigelt
Дата:
Сообщение: Re: trigger/rule question
Следующее
От: Enrico Weigelt
Дата:
Сообщение: Re: pgtop, display PostgreSQL processes in `top' style