Skip to content

Commit 7889887

Browse files
committed
Merge branch 'merge_concurrent' into merge_concurrent_locks
2 parents 8b482f4 + 43b0b6e commit 7889887

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy