Skip to content

Commit dcb7a54

Browse files
committed
postgres_fdw: Cosmetic cleanup.
Etsuro Fujita
1 parent 2c00fad commit dcb7a54

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

contrib/postgres_fdw/deparse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ deparseTargetList(StringInfo buf,
939939
}
940940

941941
/*
942-
* Deparse the appropriate locking clause (FOR SELECT or FOR SHARE) for a
942+
* Deparse the appropriate locking clause (FOR UPDATE or FOR SHARE) for a
943943
* given relation (context->foreignrel).
944944
*/
945945
static void
@@ -1163,7 +1163,7 @@ deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel,
11631163
/*
11641164
* For a join relation FROM clause entry is deparsed as
11651165
*
1166-
* ((outer relation) <join type> (inner relation) ON (joinclauses)
1166+
* ((outer relation) <join type> (inner relation) ON (joinclauses))
11671167
*/
11681168
appendStringInfo(buf, "(%s %s JOIN %s ON ", join_sql_o.data,
11691169
get_jointype_name(fpinfo->jointype), join_sql_i.data);

contrib/postgres_fdw/postgres_fdw.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
484484
fpinfo = (PgFdwRelationInfo *) palloc0(sizeof(PgFdwRelationInfo));
485485
baserel->fdw_private = (void *) fpinfo;
486486

487-
/* Base foreign tables need to be push down always. */
487+
/* Base foreign tables need to be pushed down always. */
488488
fpinfo->pushdown_safe = true;
489489

490490
/* Look up foreign-table catalog info. */
@@ -2637,7 +2637,9 @@ estimate_path_cost_size(PlannerInfo *root,
26372637
* rows.
26382638
*/
26392639

2640-
/* Calculate the cost of clauses pushed down the foreign server */
2640+
/*
2641+
* Calculate the cost of clauses pushed down to the foreign server
2642+
*/
26412643
cost_qual_eval(&remote_conds_cost, fpinfo->remote_conds, root);
26422644
/* Calculate the cost of applying join clauses */
26432645
cost_qual_eval(&join_cost, fpinfo->joinclauses, root);

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