Re: c-function returning multiple rows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: c-function returning multiple rows
Дата
Msg-id 16102.988296940@sss.pgh.pa.us
обсуждение исходный текст
Ответ на c-function returning multiple rows  (Alexey Nalbat <alexey@price.ru>)
Список pgsql-bugs
Alexey Nalbat <alexey@price.ru> writes:
> I digged into sources and supposed that line 61 in fmgr.h might be
> 'struct ReturnSetInfo *resultinfo;' instead of 'struct Node
> *resultinfo;'. But I'm not sure if it is correct.

No, it isn't.  fmgr.h is correct as given, because the resultinfo
field might point at various different kinds of Nodes.  You need to
do an IsA test and then a cast, instead.  See the code in
src/backend/executor/functions.c for an example.

            regards, tom lane

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Startup Problems on Win2K
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Cannot unzip binary tar.gz file for IRIX 6.5.7I