Re: [HACKERS] [PATCH] A hook for session start - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: [HACKERS] [PATCH] A hook for session start
Date
Msg-id 410ec95b-cec2-0195-6ef5-f881c3269a3a@2ndQuadrant.com
Whole thread Raw
In response to Re: [HACKERS] [PATCH] A hook for session start  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Responses Re: [HACKERS] [PATCH] A hook for session start  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

On 11/16/2017 10:38 PM, Fabrízio de Royes Mello wrote:
> Hi all,
>
> Attached new version of the patch fixing issues about installcheck and
> some assertions reported before (based on Michael Paquier code):
>
> https://www.postgresql.org/message-id/flat/30479.1510800078%40sss.pgh.pa.us#30479.1510800078@sss.pgh.pa.us
>
https://www.postgresql.org/message-id/flat/20171116121823.GI4628%40tamriel.snowman.net#20171116121823.GI4628@tamriel.snowman.net
>
> Regards,



I think this:
   #define IsClientBackend() \       (MyBackendId != InvalidBackendId &&    \        !IsAutoVacuumLauncherProcess()
&&   \        !IsAutoVacuumWorkerProcess() && \        !am_walsender && \        !IsBackgroundWorker)
 


probably belongs somewhere more central. Surely this isn't the only
place that we want to be able to run such a test?

cheers

andrew

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



pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: [HACKERS] [PATCH] Incremental sort
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] [PATCH] A hook for session start