Re: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine

2021-07-15 Thread Michael Paquier
On Thu, Jul 15, 2021 at 11:49:33AM +0900, Fujii Masao wrote: > Good catch, Thanks! Done while I was on it. -- Michael signature.asc Description: PGP signature

Re: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine

2021-07-14 Thread Fujii Masao
On 2021/07/15 11:21, Michael Paquier wrote: On Wed, Jul 14, 2021 at 11:38:59PM +0530, Bharath Rupireddy wrote: It looks like the commit d75288fb [1] added an unnecessary Assert(PgArchPID == 0); in PostmasterStateMachine as the if block code gets hit only when PgArchPID == 0. PSA small patch.

Re: Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine

2021-07-14 Thread Michael Paquier
On Wed, Jul 14, 2021 at 11:38:59PM +0530, Bharath Rupireddy wrote: > It looks like the commit d75288fb [1] added an unnecessary > Assert(PgArchPID == 0); in PostmasterStateMachine as the if block code > gets hit only when PgArchPID == 0. PSA small patch. Agreed that there is no need to keep that a

Remove redundant Assert(PgArchPID == 0); in PostmasterStateMachine

2021-07-14 Thread Bharath Rupireddy
Hi, It looks like the commit d75288fb [1] added an unnecessary Assert(PgArchPID == 0); in PostmasterStateMachine as the if block code gets hit only when PgArchPID == 0. PSA small patch. [1] commit d75288fb27b8fe0a926aaab7d75816f091ecdc27 Author: Fujii Masao Date: Mon Mar 15 13:13:14 2021 +0900