could not find array type for data type character varying[]
В списке pgsql-general по дате отправления:
| От | Viktor Rosenfeld |
|---|---|
| Тема | could not find array type for data type character varying[] |
| Дата | |
| Msg-id | 20091028151732.GD7012@stan обсуждение исходный текст |
| Ответы |
Re: could not find array type for data type character varying[]
Re: could not find array type for data type character varying[] Re: could not find array type for data type character varying[] |
| Список | pgsql-general |
Hi,
I'm trying to aggregate a list of table attributes into an array.
The actual code looks something like this:
SELECT
node_ref AS id,
array_agg(DISTINCT ARRAY[namespace, name, value]) as annotations
...
GROUP BY id;
I guess the minimal example that reproduces the error is:
annis=> select array_agg(array['a'::varchar, 'b', 'c']);
ERROR: could not find array type for data type character varying[]
Why doesn't this work?
Cheers,
Viktor
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера