Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitab33a7e

Browse files
committed
fix missing and misleading include guards
1 parent9d3fcff commitab33a7e

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-
#ifndefJOIN_HOOK_H
12-
#defineJOIN_HOOK_H
11+
#ifndefPATHMAN_HOOKS_H
12+
#definePATHMAN_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
#ifndefPATHMAN_INIT_H
1212
#definePATHMAN_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
#ifndefNODES_COMMON_H
1212
#defineNODES_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+
#ifndefPARTITION_CREATION_H
12+
#definePARTITION_CREATION_H
13+
14+
1115
#include"relation_info.h"
1216

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

138142
voidinvoke_part_callback(init_callback_params*cb_params);
139143
boolvalidate_part_callback(Oidprocid,boolemit_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-
#ifndefRUNTIME_INSERT_H
12-
#defineRUNTIME_INSERT_H
11+
#ifndefPARTITION_FILTER_H
12+
#definePARTITION_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
Datumvalue,Oidvalue_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
#ifndefPATHMAN_H
1212
#definePATHMAN_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
#ifndefPATHMAN_WORKERS_H
1818
#definePATHMAN_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
Oidcreate_partitions_for_value_bg_worker(Oidrelid,Datumvalue,Oidvalue_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
#ifndefPG_COMPAT_H
1212
#definePG_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
intirange_list_length(List*rangeset);
144144
boolirange_list_find(List*rangeset,intindex,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
#ifndefRELATION_INFO_H
1212
#defineRELATION_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)

[8]ページ先頭

©2009-2025 Movatter.jp