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

Commit6d2f136

Browse files
akorotkovzilder
authored andcommitted
pathman: Make it builds with clang.
1 parent58c9f56 commit6d2f136

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

‎contrib/pathman/pathman.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,21 @@ static void set_plain_rel_pathlist(PlannerInfo *root, RelOptInfo *rel, RangeTblE
4545
staticvoidset_append_rel_pathlist(PlannerInfo*root,RelOptInfo*rel,Indexrti,RangeTblEntry*rte);
4646
staticList*accumulate_append_subpath(List*subpaths,Path*path);
4747

48-
PG_FUNCTION_INFO_V1(on_partitions_created );
49-
PG_FUNCTION_INFO_V1(on_partitions_updated );
50-
PG_FUNCTION_INFO_V1(on_partitions_removed );
51-
52-
5348
typedefstruct
5449
{
5550
Oidold_varno;
5651
Oidnew_varno;
5752
}change_varno_context;
5853

54+
staticvoidchange_varnos(Node*node,Oidold_varno,Oidnew_varno);
55+
staticboolchange_varno_walker(Node*node,change_varno_context*context);
56+
57+
58+
PG_FUNCTION_INFO_V1(on_partitions_created );
59+
PG_FUNCTION_INFO_V1(on_partitions_updated );
60+
PG_FUNCTION_INFO_V1(on_partitions_removed );
61+
62+
5963

6064
/*
6165
* Entry point
@@ -357,7 +361,7 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti, RangeTblEnt
357361
}
358362

359363

360-
void
364+
staticvoid
361365
change_varnos(Node*node,Oidold_varno,Oidnew_varno)
362366
{
363367
change_varno_contextcontext;
@@ -367,7 +371,7 @@ change_varnos(Node *node, Oid old_varno, Oid new_varno)
367371
change_varno_walker(node,&context);
368372
}
369373

370-
void
374+
staticbool
371375
change_varno_walker(Node*node,change_varno_context*context)
372376
{
373377
if (node==NULL)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp