From: Tom Lane <tgl@sss.pgh.pa.us>
To: alexey@price.ru
Cc: pgsql-bugs@postgresql.org
Subject: Re: c-function returning multiple rows
Date: Thu, 26 Apr 2001 10:55:40 -0400
Message-ID: <16102.988296940@sss.pgh.pa.us> (raw)
In-Reply-To: <01042420581800.12729@workshop.price.ru>
References: <01042420581800.12729@workshop.price.ru>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, alexey@price.ru, pgsql-bugs@postgresql.org
Subject: Re: c-function returning multiple rows
In-Reply-To: <16102.988296940@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox