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

Commitb38f5ff

Browse files
committed
fix formatting
1 parent3a05cfa commitb38f5ff

File tree

4 files changed

+27
-24
lines changed

4 files changed

+27
-24
lines changed

‎src/hooks.c

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,7 @@ pathman_join_pathlist_hook(PlannerInfo *root,
213213
have_dangerous_phv(root,outer->parent->relids,required_inner)))
214214
return;
215215

216-
initial_cost_nestloop_compat(root,&workspace,jointype,outer,inner,
217-
extra);
216+
initial_cost_nestloop_compat(root,&workspace,jointype,outer,inner,extra);
218217

219218
pathkeys=build_join_pathkeys(root,joinrel,jointype,outer->pathkeys);
220219

@@ -771,6 +770,7 @@ pathman_relcache_hook(Datum arg, Oid relid)
771770

772771
/*
773772
* Utility function invoker hook.
773+
* NOTE: 'first_arg' is (PlannedStmt *) in PG 10, or (Node *) in PG <= 9.6.
774774
*/
775775
void
776776
#ifPG_VERSION_NUM >=100000
@@ -781,9 +781,9 @@ pathman_process_utility_hook(PlannedStmt *first_arg,
781781
QueryEnvironment*queryEnv,
782782
DestReceiver*dest,char*completionTag)
783783
{
784-
Node*parsetree=first_arg->utilityStmt;
785-
intstmt_location=first_arg->stmt_location,
786-
stmt_len=first_arg->stmt_len;
784+
Node*parsetree=first_arg->utilityStmt;
785+
intstmt_location=first_arg->stmt_location,
786+
stmt_len=first_arg->stmt_len;
787787
#else
788788
pathman_process_utility_hook(Node*first_arg,
789789
constchar*queryString,
@@ -792,9 +792,9 @@ pathman_process_utility_hook(Node *first_arg,
792792
DestReceiver*dest,
793793
char*completionTag)
794794
{
795-
Node*parsetree=first_arg;
796-
intstmt_location=-1,
797-
stmt_len=0;
795+
Node*parsetree=first_arg;
796+
intstmt_location=-1,
797+
stmt_len=0;
798798
#endif
799799

800800
if (IsPathmanReady())
@@ -809,8 +809,8 @@ pathman_process_utility_hook(Node *first_arg,
809809
uint64processed;
810810

811811
/* Handle our COPY case (and show a special cmd name) */
812-
PathmanDoCopy((CopyStmt*)parsetree,queryString,stmt_location,
813-
stmt_len,&processed);
812+
PathmanDoCopy((CopyStmt*)parsetree,queryString,
813+
stmt_location,stmt_len,&processed);
814814
if (completionTag)
815815
snprintf(completionTag,COMPLETION_TAG_BUFSIZE,
816816
"PATHMAN COPY "UINT64_FORMAT,processed);
@@ -845,9 +845,11 @@ pathman_process_utility_hook(Node *first_arg,
845845
}
846846
}
847847

848-
/* 'first_arg' is PlannedStmt in pg10 or Node parsetree in pg9.6 and lower */
849-
call_process_utility_compat(
850-
(process_utility_hook_next) ?process_utility_hook_next :
851-
standard_ProcessUtility,
852-
first_arg,queryString,context,params,queryEnv,dest,completionTag);
848+
/* Finally call process_utility_hook_next or standard_ProcessUtility */
849+
call_process_utility_compat((process_utility_hook_next ?
850+
process_utility_hook_next :
851+
standard_ProcessUtility),
852+
first_arg,queryString,
853+
context,params,queryEnv,
854+
dest,completionTag);
853855
}

‎src/nodes_common.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -674,13 +674,11 @@ exec_append_common(CustomScanState *node,
674674
returnscan_state->slot;
675675

676676
/*
677-
* Assuming that current projection doesn't involve SRF
678-
*
679-
* Any SFR functions are evaluated in the specialized parent node ProjectSet
677+
* Assuming that current projection doesn't involve SRF.
678+
* NOTE: Any SFR functions are evaluated in ProjectSet node.
680679
*/
681680
ResetExprContext(node->ss.ps.ps_ExprContext);
682-
node->ss.ps.ps_ProjInfo->pi_exprContext->ecxt_scantuple=
683-
scan_state->slot;
681+
node->ss.ps.ps_ProjInfo->pi_exprContext->ecxt_scantuple=scan_state->slot;
684682
result=ExecProject(node->ss.ps.ps_ProjInfo);
685683

686684
returnresult;

‎src/partition_creation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,8 @@ create_single_partition_internal(Oid parent_relid,
762762
create_stmt.partition_info=NULL;
763763
#endif
764764
#ifPG_VERSION_NUM >=100000
765-
create_stmt.partbound=NULL;
766-
create_stmt.partspec=NULL;
765+
create_stmt.partbound=NULL;
766+
create_stmt.partspec=NULL;
767767
#endif
768768

769769
/* Obtain the sequence of Stmts to create partition and link it to parent */

‎src/utility_stmt_hooking.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,11 @@ CopyGetAttnums(TupleDesc tupDesc, Relation rel, List *attnamelist)
325325
* NOTE: based on DoCopy() (see copy.c).
326326
*/
327327
void
328-
PathmanDoCopy(constCopyStmt*stmt,constchar*queryString,intstmt_location,
329-
intstmt_len,uint64*processed)
328+
PathmanDoCopy(constCopyStmt*stmt,
329+
constchar*queryString,
330+
intstmt_location,
331+
intstmt_len,
332+
uint64*processed)
330333
{
331334
CopyStatecstate;
332335
boolis_from=stmt->is_from;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp