diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-03-14 14:27:11 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-03-14 14:29:12 -0400 |
commit | 6be84eeb8d5a72014b1b6e44d0646f69531a1ccf (patch) | |
tree | d82b1b8ba9116ee21990a79f1bafeade51e33dbc /src | |
parent | 74a379b984d4df91acec2436a16c51caee3526af (diff) | |
download | postgresql-6be84eeb8d5a72014b1b6e44d0646f69531a1ccf.tar.gz postgresql-6be84eeb8d5a72014b1b6e44d0646f69531a1ccf.zip |
Update more comments for 96198d94cb7adc664bda341842dc8db671d8be72.
Etsuro Fujita, reviewed (though not completely endorsed) by Ashutosh
Bapat, and slightly expanded by me.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/optimizer/path/joinpath.c | 3 | ||||
-rw-r--r-- | src/include/nodes/relation.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/optimizer/path/joinpath.c b/src/backend/optimizer/path/joinpath.c index 3b898dafee1..f3aced3c931 100644 --- a/src/backend/optimizer/path/joinpath.c +++ b/src/backend/optimizer/path/joinpath.c @@ -213,7 +213,8 @@ add_paths_to_joinrel(PlannerInfo *root, /* * 5. If inner and outer relations are foreign tables (or joins) belonging - * to the same server, give the FDW a chance to push down joins. + * to the same server and using the same user mapping, give the FDW a + * chance to push down joins. */ if (joinrel->fdwroutine && joinrel->fdwroutine->GetForeignJoinPaths) diff --git a/src/include/nodes/relation.h b/src/include/nodes/relation.h index 641728bb0f4..bdea72c3f47 100644 --- a/src/include/nodes/relation.h +++ b/src/include/nodes/relation.h @@ -448,9 +448,11 @@ typedef struct PlannerInfo * in just as for a baserel, except we don't bother with lateral_vars. * * If the relation is either a foreign table or a join of foreign tables that - * all belong to the same foreign server, these fields will be set: + * all belong to the same foreign server and use the same user mapping, these + * fields will be set: * * serverid - OID of foreign server, if foreign table (else InvalidOid) + * umid - OID of user mapping, if foreign table (else InvalidOid) * fdwroutine - function hooks for FDW, if foreign table (else NULL) * fdw_private - private state for FDW, if foreign table (else NULL) * |