Commit dcb7a54b authored by Robert Haas's avatar Robert Haas

postgres_fdw: Cosmetic cleanup.

Etsuro Fujita
parent 2c00fad2
...@@ -939,7 +939,7 @@ deparseTargetList(StringInfo buf, ...@@ -939,7 +939,7 @@ deparseTargetList(StringInfo buf,
} }
/* /*
* Deparse the appropriate locking clause (FOR SELECT or FOR SHARE) for a * Deparse the appropriate locking clause (FOR UPDATE or FOR SHARE) for a
* given relation (context->foreignrel). * given relation (context->foreignrel).
*/ */
static void static void
...@@ -1163,7 +1163,7 @@ deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel, ...@@ -1163,7 +1163,7 @@ deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel,
/* /*
* For a join relation FROM clause entry is deparsed as * For a join relation FROM clause entry is deparsed as
* *
* ((outer relation) <join type> (inner relation) ON (joinclauses) * ((outer relation) <join type> (inner relation) ON (joinclauses))
*/ */
appendStringInfo(buf, "(%s %s JOIN %s ON ", join_sql_o.data, appendStringInfo(buf, "(%s %s JOIN %s ON ", join_sql_o.data,
get_jointype_name(fpinfo->jointype), join_sql_i.data); get_jointype_name(fpinfo->jointype), join_sql_i.data);
......
...@@ -484,7 +484,7 @@ postgresGetForeignRelSize(PlannerInfo *root, ...@@ -484,7 +484,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
fpinfo = (PgFdwRelationInfo *) palloc0(sizeof(PgFdwRelationInfo)); fpinfo = (PgFdwRelationInfo *) palloc0(sizeof(PgFdwRelationInfo));
baserel->fdw_private = (void *) fpinfo; baserel->fdw_private = (void *) fpinfo;
/* Base foreign tables need to be push down always. */ /* Base foreign tables need to be pushed down always. */
fpinfo->pushdown_safe = true; fpinfo->pushdown_safe = true;
/* Look up foreign-table catalog info. */ /* Look up foreign-table catalog info. */
...@@ -2637,7 +2637,9 @@ estimate_path_cost_size(PlannerInfo *root, ...@@ -2637,7 +2637,9 @@ estimate_path_cost_size(PlannerInfo *root,
* rows. * rows.
*/ */
/* Calculate the cost of clauses pushed down the foreign server */ /*
* Calculate the cost of clauses pushed down to the foreign server
*/
cost_qual_eval(&remote_conds_cost, fpinfo->remote_conds, root); cost_qual_eval(&remote_conds_cost, fpinfo->remote_conds, root);
/* Calculate the cost of applying join clauses */ /* Calculate the cost of applying join clauses */
cost_qual_eval(&join_cost, fpinfo->joinclauses, root); cost_qual_eval(&join_cost, fpinfo->joinclauses, root);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment