@@ -1858,7 +1858,7 @@ postgresExecForeignInsert(EState *estate,
1858
1858
if (fmstate -> aux_fmstate )
1859
1859
resultRelInfo -> ri_FdwState = fmstate -> aux_fmstate ;
1860
1860
rslot = execute_foreign_modify (estate , resultRelInfo , CMD_INSERT ,
1861
- slot , planSlot );
1861
+ slot , planSlot );
1862
1862
/* Revert that change */
1863
1863
if (fmstate -> aux_fmstate )
1864
1864
resultRelInfo -> ri_FdwState = fmstate ;
@@ -1934,11 +1934,11 @@ postgresBeginForeignInsert(ModifyTableState *mtstate,
1934
1934
bool doNothing = false;
1935
1935
1936
1936
/*
1937
- * If the foreign table we are about to insert routed rows into is also
1938
- * an UPDATE subplan result rel that will be updated later, proceeding
1939
- * with the INSERT will result in the later UPDATE incorrectly modifying
1940
- * those routed rows, so prevent the INSERT --- it would be nice if we
1941
- * could handle this case; but for now, throw an error for safety.
1937
+ * If the foreign table we are about to insert routed rows into is also an
1938
+ * UPDATE subplan result rel that will be updated later, proceeding with
1939
+ * the INSERT will result in the later UPDATE incorrectly modifying those
1940
+ * routed rows, so prevent the INSERT --- it would be nice if we could
1941
+ * handle this case; but for now, throw an error for safety.
1942
1942
*/
1943
1943
if (plan && plan -> operation == CMD_UPDATE &&
1944
1944
(resultRelInfo -> ri_usesFdwDirectModify ||
@@ -3169,7 +3169,7 @@ adjust_foreign_grouping_path_cost(PlannerInfo *root,
3169
3169
if (!grouping_is_sortable (root -> parse -> groupClause ) ||
3170
3170
!pathkeys_contained_in (pathkeys , root -> group_pathkeys ))
3171
3171
{
3172
- Path sort_path ; /* dummy for result of cost_sort */
3172
+ Path sort_path ; /* dummy for result of cost_sort */
3173
3173
3174
3174
cost_sort (& sort_path ,
3175
3175
root ,
@@ -3191,7 +3191,7 @@ adjust_foreign_grouping_path_cost(PlannerInfo *root,
3191
3191
* add 1/4th of that default.
3192
3192
*/
3193
3193
double sort_multiplier = 1.0 + (DEFAULT_FDW_SORT_MULTIPLIER
3194
- - 1.0 ) * 0.25 ;
3194
+ - 1.0 ) * 0.25 ;
3195
3195
3196
3196
* p_startup_cost *= sort_multiplier ;
3197
3197
* p_run_cost *= sort_multiplier ;
@@ -3773,6 +3773,7 @@ store_returning_result(PgFdwModifyState *fmstate,
3773
3773
fmstate -> retrieved_attrs ,
3774
3774
NULL ,
3775
3775
fmstate -> temp_cxt );
3776
+
3776
3777
/*
3777
3778
* The returning slot will not necessarily be suitable to store
3778
3779
* heaptuples directly, so allow for conversion.
@@ -6059,8 +6060,8 @@ add_foreign_final_paths(PlannerInfo *root, RelOptInfo *input_rel,
6059
6060
/*
6060
6061
* Grouping and aggregation are not supported with FOR UPDATE/SHARE,
6061
6062
* so the input_rel should be a base, join, or ordered relation; and
6062
- * if it's an ordered relation, its input relation should be a base
6063
- * or join relation.
6063
+ * if it's an ordered relation, its input relation should be a base or
6064
+ * join relation.
6064
6065
*/
6065
6066
Assert (input_rel -> reloptkind == RELOPT_BASEREL ||
6066
6067
input_rel -> reloptkind == RELOPT_JOINREL ||
0 commit comments