Re: join of array

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: join of array
Дата
Msg-id 12638.1060949228@sss.pgh.pa.us
обсуждение исходный текст
Ответ на join of array  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Ответы Re: join of array  (Joe Conway <mail@joeconway.com>)
Список pgsql-general
Pavel Stehule <stehule@kix.fsv.cvut.cz> writes:
> Is possible merge two arrays like
> array[1,2,3] + array[4,5,6] => array[1,2,3,4,5,6]

I was about to say that || would do it, but I see that's not quite
right:

regression=# SELECT ARRAY[1,2,3] || ARRAY[4,5,6];
     ?column?
-------------------
 {{1,2,3},{4,5,6}}
(1 row)

Offhand, I would think that '{1,2,3,4,5,6}' would be what I'd
intuitively expect to get from "concatenating" these arrays.
Joe, do we really have this implemented per spec?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: tsearch2 in 7.4beta1 compile problem
Следующее
От: The Hermit Hacker
Дата:
Сообщение: Re: Why the duplicate messages to pgsql-general?