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

Commit43b0b6e

Browse files
committed
change varnos for parent table in AppendPath
1 parenta83af9e commit43b0b6e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/pg_pathman.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,11 @@ append_child_relation(PlannerInfo *root, RelOptInfo *rel, Index rti,
498498
foreach(lc,rel->baserestrictinfo)
499499
{
500500
RestrictInfo*rinfo= (RestrictInfo*)lfirst(lc);
501+
RestrictInfo*new_rinfo= (RestrictInfo*)copyObject(rinfo);
501502

503+
change_varnos((Node*)new_rinfo,rel->relid,childrel->relid);
502504
childrel->baserestrictinfo=lappend(childrel->baserestrictinfo,
503-
(RestrictInfo*)copyObject(rinfo));
505+
(void*)new_rinfo);
504506
}
505507
}
506508

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp