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

Commitdcb7a54

Browse files
committed
postgres_fdw: Cosmetic cleanup.
Etsuro Fujita
1 parent2c00fad commitdcb7a54

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 (FORSELECT or FOR SHARE) for a
942+
* Deparse the appropriate locking clause (FORUPDATE or FOR SHARE) for a
943943
* given relation (context->foreignrel).
944944
*/
945945
staticvoid
@@ -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 bepush down always. */
487+
/* Base foreign tables need to bepushed 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)

[8]ページ先頭

©2009-2025 Movatter.jp