Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f5af8ee

Browse files
committed
Improvements to SQL/MED documentation.
Laurenz Albe, somewhat modified by me.
1 parent 7c26395 commit f5af8ee

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

doc/src/sgml/ddl.sgml

+12-2
Original file line numberDiff line numberDiff line change
@@ -3008,6 +3008,9 @@ ANALYZE measurement;
30083008
<indexterm>
30093009
<primary>foreign table</primary>
30103010
</indexterm>
3011+
<indexterm>
3012+
<primary>user mapping</primary>
3013+
</indexterm>
30113014

30123015
<para>
30133016
<productname>PostgreSQL</productname> implements portions of the SQL/MED
@@ -3037,8 +3040,15 @@ ANALYZE measurement;
30373040
tables</firstterm>, which define the structure of the remote data. A
30383041
foreign table can be used in queries just like a normal table, but a
30393042
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.
30423052
</para>
30433053

30443054
<para>

doc/src/sgml/fdwhandler.sgml

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ BeginForeignScan (ForeignScanState *node,
152152
</programlisting>
153153

154154
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</>).
156158
The <structname>ForeignScanState</> node has already been created, but
157159
its <structfield>fdw_state</> field is still NULL. Information about
158160
the table to scan is accessible through the

0 commit comments

Comments
 (0)