Re: enable logging of start time/cookie for all backend processes - Mailing list pgsql-patches

From Andrew Dunstan
Subject Re: enable logging of start time/cookie for all backend processes
Date
Msg-id 46B0D49E.8090300@dunslane.net
Whole thread Raw
In response to Re: enable logging of start time/cookie for all backend processes  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: enable logging of start time/cookie for all backend processes  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-patches

Alvaro Herrera wrote:
> Andrew Dunstan wrote:
>
>> Alvaro Herrera wrote:
>>
>>> I am also wondering if setting it in InitAuxiliaryProcess is redundant
>>> (or rather, whether the extra set in each auxiliary process is redundant
>>> with the call in InitAuxiliaryProcess).
>>>
>>>
>> Well, it's set right at the front of SubPostmasterMain, immediately after
>> setting MyProcPid. Is that enough to catch every path?
>>
>
> Only in the EXEC_BACKEND case, right?  It's not used at all in the other
> case.
>
>

Yeah. I need to stop multitasking - brain functions less well.

My original thought was that it needed to be set anywhere MyProcPid was
set. That still seems to make sense, it just looks like I missed a few
places, which I should fix.

cheers

andrew

pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: enable logging of start time/cookie for all backend processes
Next
From: Alvaro Herrera
Date:
Subject: Re: enable logging of start time/cookie for all backend processes