Skip to content

Commit ab33a7e

Browse files
committed
fix missing and misleading include guards
1 parent 9d3fcff commit ab33a7e

15 files changed

+48
-17
lines changed

src/hooks.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* ------------------------------------------------------------------------
99
*/
1010

11-
#ifndef JOIN_HOOK_H
12-
#define JOIN_HOOK_H
11+
#ifndef PATHMAN_HOOKS_H
12+
#define PATHMAN_HOOKS_H
13+
1314

1415
#include "postgres.h"
1516
#include "optimizer/planner.h"
@@ -59,4 +60,5 @@ void pathman_process_utility_hook(Node *parsetree,
5960
DestReceiver *dest,
6061
char *completionTag);
6162

62-
#endif
63+
64+
#endif /* PATHMAN_HOOKS_H */

src/init.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef PATHMAN_INIT_H
1212
#define PATHMAN_INIT_H
1313

14+
1415
#include "relation_info.h"
1516

1617
#include "postgres.h"
@@ -147,4 +148,5 @@ bool read_pathman_params(Oid relid,
147148
Datum *values,
148149
bool *isnull);
149150

150-
#endif
151+
152+
#endif /* PATHMAN_INIT_H */

src/nodes_common.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef NODES_COMMON_H
1212
#define NODES_COMMON_H
1313

14+
1415
#include "relation_info.h"
1516

1617
#include "postgres.h"
@@ -100,4 +101,5 @@ void explain_append_common(CustomScanState *node,
100101
HTAB *children_table,
101102
ExplainState *es);
102103

103-
#endif
104+
105+
#endif /* NODES_COMMON_H */

src/partition_creation.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
*-------------------------------------------------------------------------
99
*/
1010

11+
#ifndef PARTITION_CREATION_H
12+
#define PARTITION_CREATION_H
13+
14+
1115
#include "relation_info.h"
1216

1317
#include "postgres.h"
@@ -137,3 +141,6 @@ typedef struct
137141

138142
void invoke_part_callback(init_callback_params *cb_params);
139143
bool validate_part_callback(Oid procid, bool emit_error);
144+
145+
146+
#endif /* PARTITION_CREATION_H */

src/partition_filter.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
* ------------------------------------------------------------------------
99
*/
1010

11-
#ifndef RUNTIME_INSERT_H
12-
#define RUNTIME_INSERT_H
11+
#ifndef PARTITION_FILTER_H
12+
#define PARTITION_FILTER_H
13+
1314

1415
#include "relation_info.h"
1516
#include "utils.h"
@@ -135,4 +136,5 @@ ResultRelInfoHolder * select_partition_for_insert(const PartRelationInfo *prel,
135136
Datum value, Oid value_type,
136137
EState *estate);
137138

138-
#endif
139+
140+
#endif /* PARTITION_FILTER_H */

src/pathman.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef PATHMAN_H
1212
#define PATHMAN_H
1313

14+
1415
#include "relation_info.h"
1516
#include "rangeset.h"
1617

@@ -193,4 +194,4 @@ WrapperNode *walk_expr_tree(Expr *expr, WalkerContext *context);
193194
( DatumGetInt32(FunctionCall2((finfo), (arg1), (arg2))) > 0 )
194195

195196

196-
#endif /* PATHMAN_H */
197+
#endif /* PATHMAN_H */

src/pathman_workers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#ifndef PATHMAN_WORKERS_H
1818
#define PATHMAN_WORKERS_H
1919

20+
2021
#include "postgres.h"
2122
#include "storage/spin.h"
2223

@@ -193,4 +194,5 @@ UnpackDatumFromByteArray(Datum *datum, Size datum_size, bool typbyval,
193194
*/
194195
Oid create_partitions_for_value_bg_worker(Oid relid, Datum value, Oid value_type);
195196

196-
#endif
197+
198+
#endif /* PATHMAN_WORKERS_H */

src/pg_compat.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef PG_COMPAT_H
1212
#define PG_COMPAT_H
1313

14+
1415
#include "postgres.h"
1516

1617
#include "nodes/relation.h"

src/rangeset.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,5 @@ List *irange_list_intersection(List *a, List *b);
143143
int irange_list_length(List *rangeset);
144144
bool irange_list_find(List *rangeset, int index, bool *lossy);
145145

146-
#endif
146+
147+
#endif /* PATHMAN_RANGESET_H */

src/relation_info.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#ifndef RELATION_INFO_H
1212
#define RELATION_INFO_H
1313

14+
1415
#include "postgres.h"
1516
#include "access/attnum.h"
1617
#include "port/atomics.h"
@@ -198,4 +199,5 @@ FreeRangesArray(PartRelationInfo *prel)
198199
}
199200
}
200201

201-
#endif
202+
203+
#endif /* RELATION_INFO_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