Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
d0cd7bda
Commit
d0cd7bda
authored
9 years ago
by
Robert Haas
Browse files
Options
Downloads
Patches
Plain Diff
postgres_fdw: pgindent run.
In preparation for upcoming commits.
parent
37c84570
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/postgres_fdw/postgres_fdw.c
+15
-14
15 additions, 14 deletions
contrib/postgres_fdw/postgres_fdw.c
with
15 additions
and
14 deletions
contrib/postgres_fdw/postgres_fdw.c
+
15
−
14
View file @
d0cd7bda
...
@@ -530,8 +530,8 @@ get_useful_ecs_for_relation(PlannerInfo *root, RelOptInfo *rel)
...
@@ -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)
...
@@ -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,
...
@@ -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
,
&
params_list
);
&
params_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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment