Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e048722

Browse files
author
Amit Kapila
committed
Make the order of the header file includes consistent.
Similar to commits 14aec03, 7e73503 and dddf4cd, this commit makes the order of header file inclusion consistent in more places. Author: Vignesh C Reviewed-by: Amit Kapila Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
1 parent 2aa8452 commit e048722

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+125
-208
lines changed

contrib/bloom/bloom.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include "access/generic_xlog.h"
1818
#include "access/itup.h"
1919
#include "access/xlog.h"
20-
#include "nodes/pathnodes.h"
2120
#include "fmgr.h"
21+
#include "nodes/pathnodes.h"
2222

2323
/* Support procedures numbers */
2424
#define BLOOM_HASH_PROC 1

contrib/btree_gist/btree_gist.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#ifndef __BTREE_GIST_H__
55
#define __BTREE_GIST_H__
66

7-
#include "fmgr.h"
87
#include "access/nbtree.h"
8+
#include "fmgr.h"
99

1010
#define BtreeGistNotEqualStrategyNumber 6
1111

contrib/btree_gist/btree_utils_num.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
#ifndef __BTREE_UTILS_NUM_H__
55
#define __BTREE_UTILS_NUM_H__
66

7-
#include "btree_gist.h"
8-
#include "access/gist.h"
9-
#include "utils/rel.h"
10-
117
#include <math.h>
128
#include <float.h>
139

10+
#include "access/gist.h"
11+
#include "btree_gist.h"
12+
#include "utils/rel.h"
13+
1414
typedef char GBT_NUMKEY;
1515

1616
/* Better readable key */

contrib/btree_gist/btree_utils_var.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
#ifndef __BTREE_UTILS_VAR_H__
55
#define __BTREE_UTILS_VAR_H__
66

7-
#include "btree_gist.h"
8-
97
#include "access/gist.h"
8+
#include "btree_gist.h"
109
#include "mb/pg_wchar.h"
1110

1211
/* Variable length key */

contrib/postgres_fdw/postgres_fdw.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@
1515

1616
#include "foreign/foreign.h"
1717
#include "lib/stringinfo.h"
18+
#include "libpq-fe.h"
1819
#include "nodes/pathnodes.h"
1920
#include "utils/relcache.h"
2021

21-
#include "libpq-fe.h"
22-
2322
/*
2423
* FDW-specific planner information kept in RelOptInfo.fdw_private for a
2524
* postgres_fdw foreign table. For a baserel, this struct is created by

src/backend/libpq/auth.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "utils/memutils.h"
4040
#include "utils/timestamp.h"
4141

42-
4342
/*----------------------------------------------------------------
4443
* Global authentication functions
4544
*----------------------------------------------------------------

src/bin/pg_basebackup/receivelog.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@
1212
#ifndef RECEIVELOG_H
1313
#define RECEIVELOG_H
1414

15+
#include "access/xlogdefs.h"
1516
#include "libpq-fe.h"
1617
#include "walmethods.h"
1718

18-
#include "access/xlogdefs.h"
19-
2019
/*
2120
* Called before trying to read more data or when a segment is
2221
* finished. Return true to stop streaming.

src/bin/pg_basebackup/streamutil.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
#ifndef STREAMUTIL_H
1313
#define STREAMUTIL_H
1414

15-
#include "libpq-fe.h"
16-
1715
#include "access/xlogdefs.h"
1816
#include "datatype/timestamp.h"
17+
#include "libpq-fe.h"
1918

2019
extern const char *progname;
2120
extern char *connection_string;

src/bin/pg_dump/pg_backup_archiver.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@
2424
#ifndef __PG_BACKUP_ARCHIVE__
2525
#define __PG_BACKUP_ARCHIVE__
2626

27-
2827
#include <time.h>
2928

30-
#include "pg_backup.h"
31-
3229
#include "libpq-fe.h"
30+
#include "pg_backup.h"
3331
#include "pqexpbuffer.h"
3432

3533
#define LOBBUFSIZE 16384

src/bin/pg_rewind/datapagemap.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
#ifndef DATAPAGEMAP_H
1010
#define DATAPAGEMAP_H
1111

12-
#include "storage/relfilenode.h"
1312
#include "storage/block.h"
14-
13+
#include "storage/relfilenode.h"
1514

1615
struct datapagemap
1716
{

0 commit comments

Comments
 (0)