On Fri, Jul 22, 2022 at 02:56:22PM -0400, Tom Lane wrote:
> +     /*
> +      * If this is an interactive session, load any libraries that should be
> +      * preloaded at backend start.  Since those are determined by GUCs, this
> +      * can't happen until GUC settings are complete, but we want it to 
> happen
> +      * during the initial transaction in case anything that requires 
> database
> +      * access needs to be done.
> +      */
> +     if (!bootstrap &&
> +             !IsAutoVacuumWorkerProcess() &&
> +             !IsBackgroundWorker &&
> +             !am_walsender)
> +             process_session_preload_libraries();

I worry that this will be easily missed when adding new types of
non-interactive sessions, but I can't claim to have a better idea.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com


Reply via email to