Re: Accessing original TupleDesc from SRF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: John Gray <jgray(at)azuli(dot)co(dot)uk>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Accessing original TupleDesc from SRF
Date: 2002-08-31 00:01:51
Message-ID: 2584.1030752111@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> Attached adds:
> + TupleDesc queryDesc; /* descriptor for planned query */
> to ReturnSetInfo, and populates ReturnSetInfo for every function call to
> ExecMakeTableFunctionResult, not just when fn_retset.

I thought "expectedDesc" was a more sensible choice of name, so I made
it that. Otherwise, patch applied.

> I haven't done it yet, but I suppose this should be documented in
> xfunc.sgml.

Actually, most of what's in src/backend/utils/fmgr/README should be
transposed into xfunc.sgml someday.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-08-31 00:15:53 Re: [7.3-devl] initdb fails on RH 7.3
Previous Message Gordon Runkle 2002-08-30 23:59:53 Re: [7.3-devl] initdb fails on RH 7.3