| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | alexey(at)price(dot)ru |
| Cc: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | Re: c-function returning multiple rows |
| Date: | 2001-04-26 14:55:40 |
| Message-ID: | 16102.988296940@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-interfaces |
Alexey Nalbat <alexey(at)price(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | pgsql-bugs | 2001-04-26 17:20:13 | Cannot unzip binary tar.gz file for IRIX 6.5.7I |
| Previous Message | Peter Eisentraut | 2001-04-26 14:49:10 | Re: Startup Problems on Win2K |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alex Pilosov | 2001-04-26 15:25:43 | Re: can external C-function get multiple rows? |
| Previous Message | Tom Lane | 2001-04-26 14:41:21 | Re: can external C-function get multiple rows? |