Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2GfC-0008Go-Ny for pgsql-general@arkaria.postgresql.org; Mon, 26 Aug 2019 15:12:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i2GfB-0007bv-8A for pgsql-general@arkaria.postgresql.org; Mon, 26 Aug 2019 15:12:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i2GfA-0007W5-Qu for pgsql-general@lists.postgresql.org; Mon, 26 Aug 2019 15:12:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i2Gf4-0001mk-9Q for pgsql-general@lists.postgresql.org; Mon, 26 Aug 2019 15:12:07 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x7QFBwtu031068; Mon, 26 Aug 2019 11:11:58 -0400 From: Tom Lane To: Paul A Jungwirth cc: pgsql-general@lists.postgresql.org Subject: Re: flinfo NULL in DirectFunctionCall callee? In-reply-to: References: Comments: In-reply-to Paul A Jungwirth message dated "Mon, 26 Aug 2019 07:51:27 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31066.1566832318.1@sss.pgh.pa.us> Date: Mon, 26 Aug 2019 11:11:58 -0400 Message-ID: <31067.1566832318@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Paul A Jungwirth 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