mirror of
https://github.com/postgres/postgres.git
synced 2025-12-01 12:18:01 +03:00
Make the order of the header file includes consistent in backend modules.
Similar to commits7e735035f2anddddf4cdc33, this commit makes the order of header file inclusion consistent for backend modules. In the passing, removed a couple of duplicate inclusions. Author: Vignesh C Reviewed-by: Kuntal Ghosh and Amit Kapila Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
This commit is contained in:
@@ -39,8 +39,8 @@
|
||||
#include "access/xloginsert.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "pg_trace.h"
|
||||
#include "pgstat.h"
|
||||
#include "storage/proc.h"
|
||||
|
||||
/*
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "access/session.h"
|
||||
#include "access/xact.h"
|
||||
#include "access/xlog.h"
|
||||
#include "catalog/pg_enum.h"
|
||||
#include "catalog/index.h"
|
||||
#include "catalog/namespace.h"
|
||||
#include "catalog/pg_enum.h"
|
||||
#include "commands/async.h"
|
||||
#include "executor/execParallel.h"
|
||||
#include "libpq/libpq.h"
|
||||
@@ -43,7 +43,6 @@
|
||||
#include "utils/snapmgr.h"
|
||||
#include "utils/typcache.h"
|
||||
|
||||
|
||||
/*
|
||||
* We don't want to waste a lot of memory on an error queue which, most of
|
||||
* the time, will process only a handful of small messages. However, it is
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/brin_xlog.h"
|
||||
#include "access/clog.h"
|
||||
#include "access/commit_ts.h"
|
||||
#include "access/generic_xlog.h"
|
||||
#include "access/ginxlog.h"
|
||||
#include "access/gistxlog.h"
|
||||
#include "access/generic_xlog.h"
|
||||
#include "access/hash_xlog.h"
|
||||
#include "access/heapam_xlog.h"
|
||||
#include "access/brin_xlog.h"
|
||||
#include "access/multixact.h"
|
||||
#include "access/nbtxlog.h"
|
||||
#include "access/spgxlog.h"
|
||||
|
||||
@@ -54,11 +54,10 @@
|
||||
#include "access/slru.h"
|
||||
#include "access/transam.h"
|
||||
#include "access/xlog.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/shmem.h"
|
||||
#include "miscadmin.h"
|
||||
|
||||
|
||||
#define SlruFileName(ctl, path, seg) \
|
||||
snprintf(path, MAXPGPATH, "%s/%04X", (ctl)->Dir, seg)
|
||||
|
||||
@@ -85,8 +85,8 @@
|
||||
#include "access/xact.h"
|
||||
#include "access/xlog.h"
|
||||
#include "access/xloginsert.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "access/xlogreader.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "catalog/pg_type.h"
|
||||
#include "catalog/storage.h"
|
||||
#include "funcapi.h"
|
||||
@@ -108,7 +108,6 @@
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
|
||||
/*
|
||||
* Directory where Two-phase commit files reside within PGDATA
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "libpq/be-fsstubs.h"
|
||||
#include "libpq/pqsignal.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pg_trace.h"
|
||||
#include "pgstat.h"
|
||||
#include "replication/logical.h"
|
||||
#include "replication/logicallauncher.h"
|
||||
@@ -65,8 +66,6 @@
|
||||
#include "utils/snapmgr.h"
|
||||
#include "utils/timeout.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "pg_trace.h"
|
||||
|
||||
|
||||
/*
|
||||
* User-tweakable parameters
|
||||
|
||||
@@ -42,15 +42,16 @@
|
||||
#include "commands/tablespace.h"
|
||||
#include "common/controldata_utils.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pg_trace.h"
|
||||
#include "pgstat.h"
|
||||
#include "port/atomics.h"
|
||||
#include "postmaster/bgwriter.h"
|
||||
#include "postmaster/walwriter.h"
|
||||
#include "postmaster/startup.h"
|
||||
#include "postmaster/walwriter.h"
|
||||
#include "replication/basebackup.h"
|
||||
#include "replication/logical.h"
|
||||
#include "replication/slot.h"
|
||||
#include "replication/origin.h"
|
||||
#include "replication/slot.h"
|
||||
#include "replication/snapbuild.h"
|
||||
#include "replication/walreceiver.h"
|
||||
#include "replication/walsender.h"
|
||||
@@ -74,7 +75,6 @@
|
||||
#include "utils/relmapper.h"
|
||||
#include "utils/snapmgr.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "pg_trace.h"
|
||||
|
||||
extern uint32 bootstrap_data_checksum_version;
|
||||
|
||||
|
||||
@@ -27,17 +27,16 @@
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "replication/walreceiver.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/ipc.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/numeric.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/pg_lsn.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "utils/tuplestore.h"
|
||||
#include "storage/fd.h"
|
||||
#include "storage/ipc.h"
|
||||
|
||||
|
||||
/*
|
||||
* Store label file and tablespace map during non-exclusive backups.
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
#include "catalog/pg_control.h"
|
||||
#include "common/pg_lzcompress.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pg_trace.h"
|
||||
#include "replication/origin.h"
|
||||
#include "storage/bufmgr.h"
|
||||
#include "storage/proc.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "pg_trace.h"
|
||||
|
||||
/* Buffer size required to store a compressed version of backup block image */
|
||||
#define PGLZ_MAX_BLCKSZ PGLZ_MAX_OUTPUT(BLCKSZ)
|
||||
|
||||
@@ -18,9 +18,9 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "access/transam.h"
|
||||
#include "access/xlogrecord.h"
|
||||
#include "access/xlog_internal.h"
|
||||
#include "access/xlogreader.h"
|
||||
#include "access/xlogrecord.h"
|
||||
#include "catalog/pg_control.h"
|
||||
#include "common/pg_lzcompress.h"
|
||||
#include "replication/origin.h"
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "utils/memutils.h"
|
||||
#endif
|
||||
|
||||
|
||||
static void report_invalid_record(XLogReaderState *state, const char *fmt,...)
|
||||
pg_attribute_printf(2, 3);
|
||||
static bool allocate_recordbuf(XLogReaderState *state, uint32 reclength);
|
||||
|
||||
Reference in New Issue
Block a user