File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -3008,6 +3008,9 @@ ANALYZE measurement;
3008
3008
<indexterm>
3009
3009
<primary>foreign table</primary>
3010
3010
</indexterm>
3011
+ <indexterm>
3012
+ <primary>user mapping</primary>
3013
+ </indexterm>
3011
3014
3012
3015
<para>
3013
3016
<productname>PostgreSQL</productname> implements portions of the SQL/MED
@@ -3037,8 +3040,15 @@ ANALYZE measurement;
3037
3040
tables</firstterm>, which define the structure of the remote data. A
3038
3041
foreign table can be used in queries just like a normal table, but a
3039
3042
foreign table has no storage in the PostgreSQL server. Whenever it is
3040
- used, PostgreSQL asks the foreign data wrapper to fetch the data from the
3041
- external source.
3043
+ used, <productname>PostgreSQL</productname> asks the foreign data wrapper
3044
+ to fetch the data from the external source.
3045
+ </para>
3046
+
3047
+ <para>
3048
+ Accessing remote data may require authentication at the external
3049
+ data source. This information can be provided by a
3050
+ <firstterm>user mapping</>, which can provide additional options based
3051
+ on the current <productname>PostgreSQL</productname> role.
3042
3052
</para>
3043
3053
3044
3054
<para>
Original file line number Diff line number Diff line change @@ -152,7 +152,9 @@ BeginForeignScan (ForeignScanState *node,
152
152
</programlisting>
153
153
154
154
Begin executing a foreign scan. This is called during executor startup.
155
- It should perform any initialization needed before the scan can start.
155
+ It should perform any initialization needed before the scan can start,
156
+ but not start executing the actual scan (that should be done upon the
157
+ first call to <function>IterateForeignScan</>).
156
158
The <structname>ForeignScanState</> node has already been created, but
157
159
its <structfield>fdw_state</> field is still NULL. Information about
158
160
the table to scan is accessible through the
You can’t perform that action at this time.
0 commit comments