diff options
| author | Ashutosh Bapat | 2011-07-27 05:42:22 +0000 |
|---|---|---|
| committer | Ashutosh Bapat | 2011-07-27 05:42:22 +0000 |
| commit | 93d93ce4984b3868d80a6eb6b58e67abf99ce50f (patch) | |
| tree | 7ea9a8174bc74686893e3228e2db7fd98844b797 /src/backend/optimizer | |
| parent | f0f8a4b0680532a89c364c2294d3ca3a07ef7fea (diff) | |
In function do_query() and ExecRemoteQuery() there is duplicated code
respectively. Gathered this code into respective functions and called these
functions instead of duplicating the code.
The members expr and relid of ExecNodes are renamed as en_expr and en_relid.
Diffstat (limited to 'src/backend/optimizer')
| -rw-r--r-- | src/backend/optimizer/plan/createplan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/optimizer/plan/createplan.c b/src/backend/optimizer/plan/createplan.c index 699a476f99..d3b5c7793b 100644 --- a/src/backend/optimizer/plan/createplan.c +++ b/src/backend/optimizer/plan/createplan.c @@ -5560,12 +5560,12 @@ create_remotedelete_plan(PlannerInfo *root, Plan *topplan) xstep->exec_nodes->tableusagetype = TABLE_USAGE_TYPE_USER; xstep->exec_nodes->primarynodelist = NULL; xstep->exec_nodes->nodelist = NULL; - xstep->exec_nodes->relid = ttab->relid; + xstep->exec_nodes->en_relid = ttab->relid; xstep->exec_nodes->accesstype = RELATION_ACCESS_READ; /* First and only target entry of topplan is ctid, reference it */ ctid = makeVar(INNER, 1, TIDOID, -1, InvalidOid, 0); - xstep->exec_nodes->expr = (Expr *) ctid; + xstep->exec_nodes->en_expr = (Expr *) ctid; pfree(xbuf->data); pfree(xbuf); @@ -5590,12 +5590,12 @@ create_remotedelete_plan(PlannerInfo *root, Plan *topplan) fstep->exec_nodes->tableusagetype = TABLE_USAGE_TYPE_USER; fstep->exec_nodes->primarynodelist = NULL; fstep->exec_nodes->nodelist = NULL; - fstep->exec_nodes->relid = ttab->relid; + fstep->exec_nodes->en_relid = ttab->relid; fstep->exec_nodes->accesstype = RELATION_ACCESS_UPDATE; /* First and only target entry of topplan is ctid, reference it */ ctid = makeVar(INNER, 1, TIDOID, -1, InvalidOid, 0); - fstep->exec_nodes->expr = (Expr *) ctid; + fstep->exec_nodes->en_expr = (Expr *) ctid; } pfree(buf->data); |
