Re: Remove extra Logging_collector check before calling SysLogger_Start()

2021-12-04 Thread Michael Paquier
On Fri, Dec 03, 2021 at 12:45:34PM -0500, Tom Lane wrote: > I think it's fine as-is; good belt-and-suspenders-too programming. > It's not like the extra check inside SysLogger_Start() is costly. +1. -- Michael signature.asc Description: PGP signature

Re: Remove extra Logging_collector check before calling SysLogger_Start()

2021-12-03 Thread Tom Lane
Bharath Rupireddy writes: > On Fri, Dec 3, 2021 at 1:43 PM Daniel Gustafsson wrote: >> On 3 Dec 2021, at 08:58, Bharath Rupireddy >> wrote: >>> It seems like there's an extra Logging_collector check before calling >>> SysLogger_Start(). >> I think the code reads clearer with the Logging_collec

Re: Remove extra Logging_collector check before calling SysLogger_Start()

2021-12-03 Thread Bharath Rupireddy
On Fri, Dec 3, 2021 at 1:43 PM Daniel Gustafsson wrote: > > > On 3 Dec 2021, at 08:58, Bharath Rupireddy > > wrote: > > > It seems like there's an extra Logging_collector check before calling > > SysLogger_Start(). Note that the SysLogger_Start() has a check to > > return 0 if Logging_collector

Re: Remove extra Logging_collector check before calling SysLogger_Start()

2021-12-03 Thread Daniel Gustafsson
> On 3 Dec 2021, at 08:58, Bharath Rupireddy > wrote: > It seems like there's an extra Logging_collector check before calling > SysLogger_Start(). Note that the SysLogger_Start() has a check to > return 0 if Logging_collector is off. This change is consistent with > the other usage of SysLogger_

Remove extra Logging_collector check before calling SysLogger_Start()

2021-12-02 Thread Bharath Rupireddy
Hi, It seems like there's an extra Logging_collector check before calling SysLogger_Start(). Note that the SysLogger_Start() has a check to return 0 if Logging_collector is off. This change is consistent with the other usage of SysLogger_Start(). /* If we have lost the log collect