Skip to content

Commit 881455e

Browse files
committed
Add missing includes for some global variables
src/backend/libpq/pqcomm.c: "postmaster/postmaster.h" for Unix_socket_group, Unix_socket_permissions src/backend/utils/init/globals.c: "postmaster/postmaster.h" for MyClientSocket src/backend/utils/misc/guc_tables.c: "utils/rls.h" for row_security src/backend/utils/sort/tuplesort.c: "utils/guc.h" for trace_sort Nothing currently diagnoses missing includes for global variables, but this is being cleaned up, and these ones had an obvious header file available. Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://www.postgresql.org/message-id/flat/e0a62134-83da-4ba4-8cdb-ceb0111c95ce@eisentraut.org
1 parent 720b0ea commit 881455e

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
#include "libpq/libpq.h"
7777
#include "miscadmin.h"
7878
#include "port/pg_bswap.h"
79+
#include "postmaster/postmaster.h"
7980
#include "storage/ipc.h"
8081
#include "utils/guc_hooks.h"
8182
#include "utils/memutils.h"

src/backend/utils/init/globals.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "libpq/libpq-be.h"
2323
#include "libpq/pqcomm.h"
2424
#include "miscadmin.h"
25+
#include "postmaster/postmaster.h"
2526
#include "storage/procnumber.h"
2627

2728

src/backend/utils/misc/guc_tables.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
#include "utils/pg_locale.h"
8888
#include "utils/plancache.h"
8989
#include "utils/ps_status.h"
90+
#include "utils/rls.h"
9091
#include "utils/xml.h"
9192

9293
/* This value is normally passed in from the Makefile */

src/backend/utils/sort/tuplesort.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@
105105
#include "miscadmin.h"
106106
#include "pg_trace.h"
107107
#include "storage/shmem.h"
108+
#include "utils/guc.h"
108109
#include "utils/memutils.h"
109110
#include "utils/pg_rusage.h"
110111
#include "utils/tuplesort.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