Re: The flinfo->fn_extra question, from me this time. - Mailing list pgsql-hackers

From Chapman Flack
Subject Re: The flinfo->fn_extra question, from me this time.
Date
Msg-id 5D059F8F.6040505@anastigmatix.net
Whole thread Raw
In response to Re: The flinfo->fn_extra question, from me this time.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: The flinfo->fn_extra question, from me this time.
List pgsql-hackers
On 06/15/19 21:21, Tom Lane wrote:
> Yup.  (Of course, you don't have to use the SRF_FIRSTCALL_INIT
> infrastructure.)

That had crossed my mind ... but it seems there's around 80 or 100
lines of good stuff there that'd be a shame to duplicate. If only
init_MultiFuncCall() took an extra void ** argument, and the stock
SRF_FIRSTCALL_INIT passed &(fcinfo->flinfo->fn_extra), seems like
most of it would be reusable. shutdown_MultiFuncCall would need to work
slightly differently, and a caller who wanted to be different would need
a customized variant of SRF_PERCALL_SETUP, but that's two lines.

Cheers,
-Chap



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Next
From: Steve Singer
Date:
Subject: PG 12 beta 1 segfault during analyze