launch_backend: Remove duplicate include under EXEC_BACKEND - Mailing list pgsql-hackers

From Chao Li
Subject launch_backend: Remove duplicate include under EXEC_BACKEND
Date
Msg-id DF97908E-0C64-4B3D-BFEE-04CC9DBDD324@gmail.com
Whole thread Raw
List pgsql-hackers
Hi,

While reviewing another patch, I noticed that launch_backend.c includes storage/pg_shmem.h twice: once in the common
includesection, and again inside an #ifdef EXEC_BACKEND block. 

I first tried removing the earlier include, but that led to a build failure. So instead, I removed the duplicate
includeinside the #ifdef EXEC_BACKEND block. 

I have verified a normal build and “PROFILE=‘-DEXEC_BACKEND’ make”, both passed.

Since I was already touching this area, I also combined the two adjacent #ifdef EXEC_BACKEND blocks into one.

Please see the attached patch for details.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/





Attachment

pgsql-hackers by date:

Previous
From: Alexandre Felipe
Date:
Subject: Re: index prefetching
Next
From: Yasuo Honda
Date:
Subject: [PATCH] Fix unexpected loss of DEFERRABLE property after toggling NOT ENFORCED / ENFORCED