Re: help with fmgr - Mailing list pgsql-general

From Tom Lane
Subject Re: help with fmgr
Date
Msg-id 896510.1629131436@sss.pgh.pa.us
Whole thread Raw
In response to help with fmgr  (Luca Ferrari <fluca1978@gmail.com>)
List pgsql-general
Luca Ferrari <fluca1978@gmail.com> writes:
> I've two main doubts:
> - is fmgr working for non PL functions? Because I cannot see messages
> starting when an internal function is invoked;

Built-in functions do not support fmgr_hook; see the order of tests
in fmgr_info_cxt_security().  I'd be loath to change that, for both
performance and risk-of-circularity reasons.

Note that built-in is not the same as internal --- you could potentially
make a new internal-language pg_proc entry pointing at some existing
built-in function, and then calls using that could get hooked.

            regards, tom lane



pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: help with fmgr
Next
From: Andy Hall
Date:
Subject: Re: postgres disconnects on master after setting up replication