]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't include latch.h in libpq/libpq.h
authorÁlvaro Herrera <alvherre@kurilemu.de>
Thu, 26 Feb 2026 16:58:52 +0000 (17:58 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Thu, 26 Feb 2026 17:04:13 +0000 (18:04 +0100)
This reduces the inclusion footprint of latch.h a bit.

Per suggestion from Andres Freund.

Discussion: https://postgr.es/m/pap7mzhcxvuwlfdebjkh646ntyk4brtwm4dbocfpllwdccta5t@w3d7wz6mjpwv

src/backend/libpq/be-secure-gssapi.c
src/backend/libpq/be-secure.c
src/backend/libpq/pqcomm.c
src/include/libpq/libpq.h

index df7dc79b8276a113767727cbbb91ef0557699f78..5fb043b86080ff6c1f5ece6c9d70b1a961c3b4d5 100644 (file)
@@ -21,6 +21,7 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "port/pg_bswap.h"
+#include "storage/latch.h"
 #include "utils/injection_point.h"
 #include "utils/memutils.h"
 
index 3f9257ab010271144d30dc2480f6e5d074c273f8..edd69823b92a697be6201dc5ffe5409f06214b03 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "libpq/libpq.h"
 #include "miscadmin.h"
+#include "storage/latch.h"
 #include "tcop/tcopprot.h"
 #include "utils/injection_point.h"
 #include "utils/wait_event.h"
index 6570f27297b04e8417560b8551fe89c8365b1e9a..4a442f22df60b6c31b8a41623e1ab2af51945267 100644 (file)
@@ -78,6 +78,7 @@
 #include "port/pg_bswap.h"
 #include "postmaster/postmaster.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
 #include "utils/guc_hooks.h"
 #include "utils/memutils.h"
 
index 412bc9758fbfa193d83a019f741e95531f6ccf83..790724b6a0b57d8be5c726942dbb2d49c663ef01 100644 (file)
 
 #include "lib/stringinfo.h"
 #include "libpq/libpq-be.h"
-#include "storage/latch.h"
+
+
+/* avoid including waiteventset.h */
+typedef struct WaitEventSet WaitEventSet;
 
 
 /*