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

Commite4e87a3

Browse files
author
Amit Kapila
committed
Fix valgrind issue in commit05c8482.
Initialize other newly added variables in max_parallel_hazard_context viais_parallel_safe() because we don't check the parallel-safety of targetrelations in that function.Reported-by: Tom Lane as per buildfarmAuthor: Amit KapilaDiscussion:https://postgr.es/m/2060179.1615347455@sss.pgh.pa.us
1 parent05c8482 commite4e87a3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/backend/optimizer/util/clauses.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,10 @@ is_parallel_safe(PlannerInfo *root, Node *node)
614614
context.max_hazard=PROPARALLEL_SAFE;
615615
context.max_interesting=PROPARALLEL_RESTRICTED;
616616
context.safe_param_ids=NIL;
617-
context.command_type=node!=NULL&&IsA(node,Query) ?
618-
castNode(Query,node)->commandType :CMD_UNKNOWN;
619-
context.planner_global=root->glob;
617+
/* We don't need to evaluate target relation's parallel-safety here. */
618+
context.target_rte=NULL;
619+
context.command_type=CMD_UNKNOWN;
620+
context.planner_global=NULL;
620621

621622
/*
622623
* The params that refer to the same or parent query level are considered

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp