From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul A Jungwirth <pj@illuminatedcomputing.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: flinfo NULL in DirectFunctionCall callee?
Date: Mon, 26 Aug 2019 11:11:58 -0400
Message-ID: <31067.1566832318@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+renyUeS3vBGxur6-eZ5YCy_XKK7sFRG77DJezSMxrpeJ-9ag@mail.gmail.com>
References: <CA+renyUeS3vBGxur6-eZ5YCy_XKK7sFRG77DJezSMxrpeJ-9ag@mail.gmail.com>
Paul A Jungwirth <pj@illuminatedcomputing.com> writes:
> Is it expected for flinfo to be null when using DirectFunctionCall*?
Yes, per the comment on those functions:
* These are for invocation of a specifically named function with a
* directly-computed parameter list. Note that neither arguments nor result
* are allowed to be NULL. Also, the function cannot be one that needs to
* look at FmgrInfo, since there won't be any.
> Is there something else I should use instead? It looks like
> FunctionCall2 would let me pass my own flinfo, but I'm not sure how to
> set that up first.
Use fmgr_info() or a sibling to fill in the FmgrInfo.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, pj@illuminatedcomputing.com
Subject: Re: flinfo NULL in DirectFunctionCall callee?
In-Reply-To: <31067.1566832318@sss.pgh.pa.us>
References: <CA+renyUeS3vBGxur6-eZ5YCy_XKK7sFRG77DJezSMxrpeJ-9ag@mail.gmail.com> <31067.1566832318@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