Re: late binding of shared libs for C functions - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: late binding of shared libs for C functions
Date
Msg-id 7c1e9c87-80a0-2fd1-e5da-66b35ec8ee60@2ndQuadrant.com
Whole thread Raw
In response to Re: late binding of shared libs for C functions  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers

On 06/12/2018 08:46 AM, Andrew Gierth wrote:
>>>>>> "Andrew" == Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
>   Andrew> Perhaps something like NO CHECK would meet the case, i.e. we're
>   Andrew> not checking the link at function creation time.
>
> The real question is why check_function_bodies doesn't cover this;
> there's a comment in fmgr_c_validator that this is deliberate, but it's
> rather unclear what the advantage is supposed to be:
>
>   * It'd be most consistent to skip the check if !check_function_bodies,
>   * but the purpose of that switch is to be helpful for pg_dump loading,
>   * and for pg_dump loading it's much better if we *do* check.
>



Maybe we need a function that will validate all the links, that could be 
called after everything is installed.

cheers

andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: late binding of shared libs for C functions
Next
From: Daniel Gustafsson
Date:
Subject: Re: Avoid extra Sort nodes between WindowAggs when sorting can bereused