mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 23:56:58 +03:00
postgres_fdw: pgindent run.
In preparation for upcoming commits.
This commit is contained in:
parent
37c84570b1
commit
d0cd7bda97
@ -394,7 +394,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
|
|||||||
fpinfo->shippable_extensions =
|
fpinfo->shippable_extensions =
|
||||||
ExtractExtensionList(defGetString(def), false);
|
ExtractExtensionList(defGetString(def), false);
|
||||||
else if (strcmp(def->defname, "fetch_size") == 0)
|
else if (strcmp(def->defname, "fetch_size") == 0)
|
||||||
fpinfo->fetch_size = strtol(defGetString(def), NULL,10);
|
fpinfo->fetch_size = strtol(defGetString(def), NULL, 10);
|
||||||
}
|
}
|
||||||
foreach(lc, fpinfo->table->options)
|
foreach(lc, fpinfo->table->options)
|
||||||
{
|
{
|
||||||
@ -403,7 +403,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
|
|||||||
if (strcmp(def->defname, "use_remote_estimate") == 0)
|
if (strcmp(def->defname, "use_remote_estimate") == 0)
|
||||||
fpinfo->use_remote_estimate = defGetBoolean(def);
|
fpinfo->use_remote_estimate = defGetBoolean(def);
|
||||||
else if (strcmp(def->defname, "fetch_size") == 0)
|
else if (strcmp(def->defname, "fetch_size") == 0)
|
||||||
fpinfo->fetch_size = strtol(defGetString(def), NULL,10);
|
fpinfo->fetch_size = strtol(defGetString(def), NULL, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -530,8 +530,8 @@ get_useful_ecs_for_relation(PlannerInfo *root, RelOptInfo *rel)
|
|||||||
Relids relids;
|
Relids relids;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First, consider whether any active EC is potentially useful for a
|
* First, consider whether any active EC is potentially useful for a merge
|
||||||
* merge join against this relation.
|
* join against this relation.
|
||||||
*/
|
*/
|
||||||
if (rel->has_eclass_joins)
|
if (rel->has_eclass_joins)
|
||||||
{
|
{
|
||||||
@ -646,13 +646,13 @@ get_useful_pathkeys_for_relation(PlannerInfo *root, RelOptInfo *rel)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Even if we're not using remote estimates, having the remote side do
|
* Even if we're not using remote estimates, having the remote side do the
|
||||||
* the sort generally won't be any worse than doing it locally, and it
|
* sort generally won't be any worse than doing it locally, and it might
|
||||||
* might be much better if the remote side can generate data in the right
|
* be much better if the remote side can generate data in the right order
|
||||||
* order without needing a sort at all. However, what we're going to do
|
* without needing a sort at all. However, what we're going to do next is
|
||||||
* next is try to generate pathkeys that seem promising for possible merge
|
* try to generate pathkeys that seem promising for possible merge joins,
|
||||||
* joins, and that's more speculative. A wrong choice might hurt quite a
|
* and that's more speculative. A wrong choice might hurt quite a bit, so
|
||||||
* bit, so bail out if we can't use remote estimates.
|
* bail out if we can't use remote estimates.
|
||||||
*/
|
*/
|
||||||
if (!fpinfo->use_remote_estimate)
|
if (!fpinfo->use_remote_estimate)
|
||||||
return useful_pathkeys_list;
|
return useful_pathkeys_list;
|
||||||
@ -1006,6 +1006,7 @@ postgresGetForeignPlan(PlannerInfo *root,
|
|||||||
deparseSelectStmtForRel(&sql, root, baserel, remote_conds,
|
deparseSelectStmtForRel(&sql, root, baserel, remote_conds,
|
||||||
best_path->path.pathkeys, &retrieved_attrs,
|
best_path->path.pathkeys, &retrieved_attrs,
|
||||||
¶ms_list);
|
¶ms_list);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Build the fdw_private list that will be available to the executor.
|
* Build the fdw_private list that will be available to the executor.
|
||||||
* Items in the list must match enum FdwScanPrivateIndex, above.
|
* Items in the list must match enum FdwScanPrivateIndex, above.
|
||||||
@ -2640,7 +2641,7 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel,
|
|||||||
|
|
||||||
if (strcmp(def->defname, "fetch_size") == 0)
|
if (strcmp(def->defname, "fetch_size") == 0)
|
||||||
{
|
{
|
||||||
fetch_size = strtol(defGetString(def), NULL,10);
|
fetch_size = strtol(defGetString(def), NULL, 10);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2650,7 +2651,7 @@ postgresAcquireSampleRowsFunc(Relation relation, int elevel,
|
|||||||
|
|
||||||
if (strcmp(def->defname, "fetch_size") == 0)
|
if (strcmp(def->defname, "fetch_size") == 0)
|
||||||
{
|
{
|
||||||
fetch_size = strtol(defGetString(def), NULL,10);
|
fetch_size = strtol(defGetString(def), NULL, 10);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user