]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Don't include proc.h in shm_mq.h
authorÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 27 Feb 2026 09:53:47 +0000 (10:53 +0100)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Fri, 27 Feb 2026 09:53:47 +0000 (10:53 +0100)
This prevents proliferation of proc.h to tons of other places; shm_mq.h
is widely included.

Discussion: https://postgr.es/m/202602261733.s2rkxezwuif6@alvherre.pgsql

27 files changed:
src/backend/access/brin/brin.c
src/backend/access/gin/gininsert.c
src/backend/access/heap/heapam.c
src/backend/access/heap/vacuumlazy.c
src/backend/access/nbtree/nbtsort.c
src/backend/access/transam/parallel.c
src/backend/catalog/namespace.c
src/backend/commands/async.c
src/backend/commands/vacuumparallel.c
src/backend/executor/execParallel.c
src/backend/executor/nodeAppend.c
src/backend/executor/nodeGather.c
src/backend/libpq/pqmq.c
src/backend/optimizer/plan/createplan.c
src/backend/replication/logical/applyparallelworker.c
src/backend/replication/logical/tablesync.c
src/backend/replication/logical/worker.c
src/backend/storage/ipc/procsignal.c
src/backend/storage/ipc/shm_mq.c
src/backend/utils/activity/backend_progress.c
src/backend/utils/misc/guc_tables.c
src/include/access/parallel.h
src/include/libpq/pqmq.h
src/include/storage/shm_mq.h
src/test/modules/test_shm_mq/setup.c
src/test/modules/test_shm_mq/test.c
src/test/modules/test_shm_mq/worker.c

index 6887e421442ee8f45d5237e6ab980b52dbf8814d..9cd563fd0c3e694ca9496c1681204367568f99da 100644 (file)
@@ -33,6 +33,7 @@
 #include "postmaster/autovacuum.h"
 #include "storage/bufmgr.h"
 #include "storage/freespace.h"
+#include "storage/proc.h"
 #include "tcop/tcopprot.h"
 #include "utils/acl.h"
 #include "utils/datum.h"
index 0d63fb4ba27b6f50c59666b6c7ca52520e4a6a19..ee9b6106922a9f22fcf1cb70c864017eb95a16a3 100644 (file)
@@ -27,6 +27,7 @@
 #include "nodes/execnodes.h"
 #include "pgstat.h"
 #include "storage/bufmgr.h"
+#include "storage/proc.h"
 #include "storage/predicate.h"
 #include "tcop/tcopprot.h"
 #include "utils/datum.h"
index 98d53caeea8226038a99b2c94218e3a0913e82a3..d534258e5478b3e4787dd8901b1fb0a4a1d8090b 100644 (file)
@@ -47,6 +47,7 @@
 #include "port/pg_bitutils.h"
 #include "storage/lmgr.h"
 #include "storage/predicate.h"
+#include "storage/proc.h"
 #include "storage/procarray.h"
 #include "utils/datum.h"
 #include "utils/injection_point.h"
index dcbaf49401bf5a5ed6c4d1b06c4b24d8b878537c..5d271d809672bc3cc0ff4fea6a38aa71304c2315 100644 (file)
 #include "postmaster/autovacuum.h"
 #include "storage/bufmgr.h"
 #include "storage/freespace.h"
+#include "storage/latch.h"
 #include "storage/lmgr.h"
 #include "storage/read_stream.h"
 #include "utils/lsyscache.h"
index 3a45508f62ea4c4b0027108eb8993388523f8c29..fd9d4087b5af60ff86c0b37c79068c00892eee32 100644 (file)
@@ -52,6 +52,7 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "storage/bulk_write.h"
+#include "storage/proc.h"
 #include "tcop/tcopprot.h"
 #include "utils/rel.h"
 #include "utils/sortsupport.h"
index 44786dc131f71912f82be5075e76408c0a0e21cb..e69c4b7424835a0ff1ee568612b8970220b09a86 100644 (file)
@@ -36,6 +36,7 @@
 #include "pgstat.h"
 #include "storage/ipc.h"
 #include "storage/predicate.h"
+#include "storage/proc.h"
 #include "storage/spin.h"
 #include "tcop/tcopprot.h"
 #include "utils/combocid.h"
index 4b0f4ba115d63b62d52787482c14fce60bb32a9e..56b87d878e884f602dff82296e1a73a45407f25a 100644 (file)
@@ -48,6 +48,7 @@
 #include "nodes/makefuncs.h"
 #include "storage/ipc.h"
 #include "storage/lmgr.h"
+#include "storage/proc.h"
 #include "storage/procarray.h"
 #include "utils/acl.h"
 #include "utils/builtins.h"
index 657c591618dd962fd7e5bfd08c13159f1e41a420..0b6d119dad02b05ec1631123c89bfbea86ccc3cc 100644 (file)
 #include "miscadmin.h"
 #include "storage/dsm_registry.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
 #include "storage/lmgr.h"
 #include "storage/procsignal.h"
 #include "tcop/tcopprot.h"
index c3b3c9ea21ab8a0c217330034d820467abd42dab..279108ca89f0b4e1af1101c412439893a4ee1e4f 100644 (file)
@@ -35,6 +35,7 @@
 #include "optimizer/paths.h"
 #include "pgstat.h"
 #include "storage/bufmgr.h"
+#include "storage/proc.h"
 #include "tcop/tcopprot.h"
 #include "utils/lsyscache.h"
 #include "utils/rel.h"
index f87978c137e7dc42444237de3ed905f81db6c1e6..ac84af294c9f636ab4121e0ad36c068075bdad5b 100644 (file)
@@ -45,6 +45,7 @@
 #include "jit/jit.h"
 #include "nodes/nodeFuncs.h"
 #include "pgstat.h"
+#include "storage/proc.h"
 #include "tcop/tcopprot.h"
 #include "utils/datum.h"
 #include "utils/dsa.h"
index 7138dc692c6259b30b0ff0217ab09e538d117c76..39d9442c121853da61b1c84294866c9fbd1cbedf 100644 (file)
@@ -64,6 +64,7 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "storage/latch.h"
+#include "storage/lwlock.h"
 
 /* Shared state for parallel-aware Append. */
 struct ParallelAppendState
index 4105f1d1968d5b2ca1f6e2fe4a7ef41f5f658183..114693abb320708ad53c11f7c3bff8bdf5727495 100644 (file)
@@ -36,6 +36,7 @@
 #include "executor/tqueue.h"
 #include "miscadmin.h"
 #include "optimizer/optimizer.h"
+#include "storage/latch.h"
 #include "utils/wait_event.h"
 
 
index 6e4bbfb5aa15d7d3a959898eb554ed42d6d06e34..7e4a725b79651bce48742240841aebcb4088dbda 100644 (file)
@@ -20,6 +20,7 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "replication/logicalworker.h"
+#include "storage/latch.h"
 #include "tcop/tcopprot.h"
 #include "utils/builtins.h"
 
index 21f1988cf22e7fe9838bd8611ba16595bb47cb8b..50b0e10308b2b78af6d5df703ff8d29fdabbf2cc 100644 (file)
@@ -17,6 +17,7 @@
 #include "postgres.h"
 
 #include "access/sysattr.h"
+#include "access/transam.h"
 #include "catalog/pg_class.h"
 #include "foreign/fdwapi.h"
 #include "miscadmin.h"
index 1730ace54902b89b60a28b3980bf4a266177b0fd..7cd6e912a9c085db783fbd86f88bbec190c565bc 100644 (file)
 #include "replication/origin.h"
 #include "replication/worker_internal.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
 #include "storage/lmgr.h"
+#include "storage/proc.h"
 #include "tcop/tcopprot.h"
 #include "utils/inval.h"
 #include "utils/memutils.h"
index 2f2f0121ecfa1b363325c096d293cb304813bacd..bccbf61bf392c3c324c315aa09c65c7322dc045e 100644 (file)
 #include "replication/walreceiver.h"
 #include "replication/worker_internal.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
 #include "storage/lmgr.h"
 #include "utils/acl.h"
 #include "utils/array.h"
index bae8c0113900617cddf412a68be56cf29ad8e40f..f9c4b484754b67866250f1dba4aa3ff3f19a5770 100644 (file)
 #include "rewrite/rewriteHandler.h"
 #include "storage/buffile.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
 #include "storage/lmgr.h"
 #include "storage/procarray.h"
 #include "tcop/tcopprot.h"
index 7505c9d3a37a2251195cf7b7bea05d17137c52ef..d47d180a32f2eafe3b359133ff400e57d4445a16 100644 (file)
@@ -28,6 +28,7 @@
 #include "storage/condition_variable.h"
 #include "storage/ipc.h"
 #include "storage/latch.h"
+#include "storage/proc.h"
 #include "storage/shmem.h"
 #include "storage/sinval.h"
 #include "storage/smgr.h"
index 3ce6068ac54f6fcefed24c5dd465a11e81cbdcab..7e9fbc00705524492fd1c6e73692ae298dab8ff5 100644 (file)
@@ -22,6 +22,7 @@
 #include "pgstat.h"
 #include "port/pg_bitutils.h"
 #include "postmaster/bgworker.h"
+#include "storage/proc.h"
 #include "storage/shm_mq.h"
 #include "storage/spin.h"
 #include "utils/memutils.h"
index 5addb2d004f49eae7a297c0f156826eb3d49e6af..b0359771de50aa707e598573024c7b17d6efded0 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "access/parallel.h"
 #include "libpq/pqformat.h"
+#include "storage/proc.h"
 #include "utils/backend_progress.h"
 #include "utils/backend_status.h"
 
index 741fce8dede5793594b5037421833e1a50d80e69..38aaf82f120940710d28e54c92db604af54cfb75 100644 (file)
@@ -85,6 +85,7 @@
 #include "storage/large_object.h"
 #include "storage/pg_shmem.h"
 #include "storage/predicate.h"
+#include "storage/proc.h"
 #include "storage/procnumber.h"
 #include "storage/standby.h"
 #include "tcop/backend_startup.h"
index 01bdf2bec1fcb0814d2654a7194629379e088e42..60f857675e05a07f9c87fad1d3f33fd0d2b687dc 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef PARALLEL_H
 #define PARALLEL_H
 
+#include <signal.h>
+
 #include "access/xlogdefs.h"
 #include "lib/ilist.h"
 #include "postmaster/bgworker.h"
index c62fffb5998e12bfdee1495929bb05cd2b8a6867..36780c0816e67e6cbdb91aca5499711e51238f9a 100644 (file)
@@ -14,6 +14,7 @@
 #define PQMQ_H
 
 #include "lib/stringinfo.h"
+#include "storage/procnumber.h"
 #include "storage/shm_mq.h"
 
 extern void pq_redirect_to_shm_mq(dsm_segment *seg, shm_mq_handle *mqh);
index aa5676f6a122050e448dbed96dc8611eddf2d686..6f78f4a3acb06a50d087a3b4deaf3d80e874e311 100644 (file)
@@ -15,7 +15,9 @@
 
 #include "postmaster/bgworker.h"
 #include "storage/dsm.h"
-#include "storage/proc.h"
+
+/* avoid including storage/proc.h */
+typedef struct PGPROC PGPROC;
 
 /* The queue itself, in shared memory. */
 struct shm_mq;
index 579e5933d2811985ea17fd6a11d98270f64db927..36bb255922c2d567af16a7d54a9827f2fdc062a8 100644 (file)
@@ -18,6 +18,7 @@
 #include "miscadmin.h"
 #include "pgstat.h"
 #include "postmaster/bgworker.h"
+#include "storage/proc.h"
 #include "storage/shm_toc.h"
 #include "test_shm_mq.h"
 #include "utils/memutils.h"
index fe1794c6077ea74152d1634a47485c4b79990aec..ce97e6e1aa4539d9ee24ea0823170a8453cf5009 100644 (file)
@@ -16,6 +16,7 @@
 #include "fmgr.h"
 #include "miscadmin.h"
 #include "pgstat.h"
+#include "storage/proc.h"
 #include "varatt.h"
 
 #include "test_shm_mq.h"
index 6a4147554bb9bac71566c748b2ca9b240b1a219b..e13c05ae5c7cfc21371be7e83a06307bd11130ae 100644 (file)
@@ -21,6 +21,8 @@
 
 #include "miscadmin.h"
 #include "storage/ipc.h"
+#include "storage/latch.h"
+#include "storage/proc.h"
 #include "storage/procarray.h"
 #include "storage/shm_mq.h"
 #include "storage/shm_toc.h"