pgsql: Tidy up #ifdef USE_INJECTION_POINTS guards

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Tidy up #ifdef USE_INJECTION_POINTS guards
Date: 2026-04-07 13:26:13
Message-ID: E1wA6RY-003OsL-0v@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Tidy up #ifdef USE_INJECTION_POINTS guards

Remove unnecessary #ifdef guard around the function prototypes; they
are already inside a larger #ifdef block. Move #include "subsystems.h"
inside the USE_INJECTION_POINTS guard; it's needed for
InjectionPointShmemCallbacks, which is a also inside the guard.

Reported-by: Dagfinn Ilmari Mannsåker <ilmari(at)ilmari(dot)org>
Discussion: https://www.postgresql.org/message-id/87y0iz2c1v.fsf@wibble.ilmari.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9480c585df6cdb33c542c4a2cac26a341a54afd4

Modified Files
--------------
src/backend/utils/misc/injection_point.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Álvaro Herrera 2026-04-07 13:29:34 Re: pgsql: Fix valgrind failure
Previous Message Álvaro Herrera 2026-04-07 13:14:58 pgsql: Fix tests under wal_level=minimal