| От | hubert depesz lubaczewski |
|---|---|
| Тема | Re: Set Returning Functions and array_agg() |
| Дата | |
| Msg-id | 20130424202925.GA21083@depesz.com обсуждение исходный текст |
| Ответ на | Set Returning Functions and array_agg() (Stephen Scheck <singularsyntax@gmail.com>) |
| Ответы |
Re: Set Returning Functions and array_agg()
|
| Список | pgsql-general |
On Wed, Apr 24, 2013 at 12:48:44PM -0700, Stephen Scheck wrote: > I have a UDF (written in C) that returns SETOF RECORD of an anonymous > record type > (defined via OUT parameters). I'm trying to use array_agg() to transform > its output to > an array: > pg_dev=# SELECT array_agg((my_setof_record_returning_func()).col1); > ERROR: set-valued function called in context that cannot accept a set Is there any reason why you're not using normal syntax: select array_agg(col1) from my_setof_record_returning_func(); ? Best regards, depesz
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера