launch_backend: Remove duplicate include under EXEC_BACKEND

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: launch_backend: Remove duplicate include under EXEC_BACKEND
Date: 2026-02-27 09:43:20
Message-ID: DF97908E-0C64-4B3D-BFEE-04CC9DBDD324@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While reviewing another patch, I noticed that launch_backend.c includes storage/pg_shmem.h twice: once in the common include section, 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 include inside 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 Content-Type Size
v1-0001-launch_backend-Remove-duplicate-include-under-EXE.patch application/octet-stream 1.1 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Yasuo Honda 2026-02-27 09:51:02 [PATCH] Fix unexpected loss of DEFERRABLE property after toggling NOT ENFORCED / ENFORCED
Previous Message Alexandre Felipe 2026-02-27 08:51:19 Re: index prefetching