mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Make the order of the header file includes consistent in backend modules.
Similar to commits7e735035f2
anddddf4cdc33
, 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:
@@ -31,8 +31,6 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/index_selfuncs.h"
|
||||
#include "utils/rel.h"
|
||||
#include "miscadmin.h"
|
||||
|
||||
|
||||
/* Working state for hashbuild and its callback */
|
||||
typedef struct
|
||||
|
@@ -17,11 +17,11 @@
|
||||
#include "access/bufmask.h"
|
||||
#include "access/hash.h"
|
||||
#include "access/hash_xlog.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "access/xlog.h"
|
||||
#include "access/transam.h"
|
||||
#include "storage/procarray.h"
|
||||
#include "access/xlog.h"
|
||||
#include "access/xlogutils.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/procarray.h"
|
||||
|
||||
/*
|
||||
* replay a hash index meta page
|
||||
|
@@ -18,10 +18,10 @@
|
||||
#include "access/hash.h"
|
||||
#include "access/hash_xlog.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/rel.h"
|
||||
#include "storage/lwlock.h"
|
||||
#include "storage/buf_internals.h"
|
||||
#include "storage/lwlock.h"
|
||||
#include "storage/predicate.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
static void _hash_vacuum_one_page(Relation rel, Relation hrel,
|
||||
Buffer metabuf, Buffer buf);
|
||||
|
@@ -32,9 +32,8 @@
|
||||
#include "access/hash_xlog.h"
|
||||
#include "miscadmin.h"
|
||||
#include "storage/lmgr.h"
|
||||
#include "storage/smgr.h"
|
||||
#include "storage/predicate.h"
|
||||
|
||||
#include "storage/smgr.h"
|
||||
|
||||
static bool _hash_alloc_buckets(Relation rel, BlockNumber firstblock,
|
||||
uint32 nblocks);
|
||||
|
@@ -18,8 +18,8 @@
|
||||
#include "access/relscan.h"
|
||||
#include "miscadmin.h"
|
||||
#include "pgstat.h"
|
||||
#include "utils/rel.h"
|
||||
#include "storage/predicate.h"
|
||||
#include "utils/rel.h"
|
||||
|
||||
static bool _hash_readpage(IndexScanDesc scan, Buffer *bufP,
|
||||
ScanDirection dir);
|
||||
|
@@ -17,9 +17,9 @@
|
||||
#include "access/hash.h"
|
||||
#include "access/reloptions.h"
|
||||
#include "access/relscan.h"
|
||||
#include "storage/buf_internals.h"
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/rel.h"
|
||||
#include "storage/buf_internals.h"
|
||||
|
||||
#define CALC_NEW_BUCKET(old_bucket, lowmask) \
|
||||
old_bucket | (lowmask + 1)
|
||||
|
Reference in New Issue
Block a user