Skip to content

Commit 1d9c5d0

Browse files
committed
Do not rely on pgstat.h to indirectly include storage/ headers.
An upcoming patch might remove the (now indirect) proc.h include (which in turn includes other headers), and it's cleaner for the modified files to include their dependencies directly anyway... Discussion: https://postgr.es/m/20210402194458.2vu324hkk2djq6ce@alap3.anarazel.de
1 parent a333476 commit 1d9c5d0

File tree

6 files changed

+8
-0
lines changed

6 files changed

+8
-0
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
#include "pgstat.h"
7777
#include "storage/fd.h"
7878
#include "storage/ipc.h"
79+
#include "storage/lwlock.h"
80+
#include "storage/shmem.h"
7981
#include "storage/spin.h"
8082
#include "tcop/utility.h"
8183
#include "utils/acl.h"

src/backend/postmaster/pgarch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@
4444
#include "storage/ipc.h"
4545
#include "storage/latch.h"
4646
#include "storage/pmsignal.h"
47+
#include "storage/proc.h"
4748
#include "storage/procsignal.h"
49+
#include "storage/shmem.h"
4850
#include "utils/guc.h"
4951
#include "utils/ps_status.h"
5052

src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
#include "storage/latch.h"
6262
#include "storage/lmgr.h"
6363
#include "storage/pg_shmem.h"
64+
#include "storage/proc.h"
6465
#include "storage/procsignal.h"
6566
#include "storage/sinvaladt.h"
6667
#include "utils/ascii.h"

src/backend/replication/walreceiver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
#include "replication/walsender.h"
7070
#include "storage/ipc.h"
7171
#include "storage/pmsignal.h"
72+
#include "storage/proc.h"
7273
#include "storage/procarray.h"
7374
#include "storage/procsignal.h"
7475
#include "utils/acl.h"

src/backend/storage/lmgr/lmgr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "miscadmin.h"
2424
#include "pgstat.h"
2525
#include "storage/lmgr.h"
26+
#include "storage/proc.h"
2627
#include "storage/procarray.h"
2728
#include "storage/sinvaladt.h"
2829
#include "utils/inval.h"

src/backend/utils/adt/misc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "postmaster/syslogger.h"
3737
#include "rewrite/rewriteHandler.h"
3838
#include "storage/fd.h"
39+
#include "storage/latch.h"
3940
#include "tcop/tcopprot.h"
4041
#include "utils/builtins.h"
4142
#include "utils/fmgroids.h"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy