Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
dcb7a54b
Commit
dcb7a54b
authored
Aug 24, 2016
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postgres_fdw: Cosmetic cleanup.
Etsuro Fujita
parent
2c00fad2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
contrib/postgres_fdw/deparse.c
contrib/postgres_fdw/deparse.c
+2
-2
contrib/postgres_fdw/postgres_fdw.c
contrib/postgres_fdw/postgres_fdw.c
+4
-2
No files found.
contrib/postgres_fdw/deparse.c
View file @
dcb7a54b
...
...
@@ -939,7 +939,7 @@ deparseTargetList(StringInfo buf,
}
/*
* Deparse the appropriate locking clause (FOR
SELECT
or FOR SHARE) for a
* Deparse the appropriate locking clause (FOR
UPDATE
or FOR SHARE) for a
* given relation (context->foreignrel).
*/
static
void
...
...
@@ -1163,7 +1163,7 @@ deparseFromExprForRel(StringInfo buf, PlannerInfo *root, RelOptInfo *foreignrel,
/*
* For a join relation FROM clause entry is deparsed as
*
* ((outer relation) <join type> (inner relation) ON (joinclauses)
* ((outer relation) <join type> (inner relation) ON (joinclauses)
)
*/
appendStringInfo
(
buf
,
"(%s %s JOIN %s ON "
,
join_sql_o
.
data
,
get_jointype_name
(
fpinfo
->
jointype
),
join_sql_i
.
data
);
...
...
contrib/postgres_fdw/postgres_fdw.c
View file @
dcb7a54b
...
...
@@ -484,7 +484,7 @@ postgresGetForeignRelSize(PlannerInfo *root,
fpinfo
=
(
PgFdwRelationInfo
*
)
palloc0
(
sizeof
(
PgFdwRelationInfo
));
baserel
->
fdw_private
=
(
void
*
)
fpinfo
;
/* Base foreign tables need to be push down always. */
/* Base foreign tables need to be push
ed
down always. */
fpinfo
->
pushdown_safe
=
true
;
/* Look up foreign-table catalog info. */
...
...
@@ -2637,7 +2637,9 @@ estimate_path_cost_size(PlannerInfo *root,
* rows.
*/
/* Calculate the cost of clauses pushed down the foreign server */
/*
* Calculate the cost of clauses pushed down to the foreign server
*/
cost_qual_eval
(
&
remote_conds_cost
,
fpinfo
->
remote_conds
,
root
);
/* Calculate the cost of applying join clauses */
cost_qual_eval
(
&
join_cost
,
fpinfo
->
joinclauses
,
root
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment