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

Commitd4be235

Browse files
danolivoAndrey Lepikhov
authored and
Andrey Lepikhov
committed
Add SubqueryScanPath support
1 parentc05385e commitd4be235

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

‎path_utils.c‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ get_path_clauses(Path *path, PlannerInfo *root, List **selectivities)
153153
returnget_path_clauses(((SetOpPath*)path)->subpath,root,
154154
selectivities);
155155
break;
156+
caseT_SubqueryScanPath:
157+
/*
158+
* According to the SubqueryScanPath description, we need to use
159+
* path.parent->subroot as the planning context for interpretation
160+
* of the subpath.
161+
*/
162+
returnget_path_clauses(((SubqueryScanPath*)path)->subpath,
163+
path->parent->subroot,
164+
selectivities);
165+
break;
156166
caseT_LockRowsPath:
157167
returnget_path_clauses(((LockRowsPath*)path)->subpath,root,
158168
selectivities);
@@ -161,10 +171,6 @@ get_path_clauses(Path *path, PlannerInfo *root, List **selectivities)
161171
returnget_path_clauses(((LimitPath*)path)->subpath,root,
162172
selectivities);
163173
break;
164-
caseT_SubqueryScanPath:
165-
returnget_path_clauses(((SubqueryScanPath*)path)->subpath,root,
166-
selectivities);
167-
break;
168174
caseT_AppendPath:
169175
{
170176
ListCell*lc;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp