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

Commit 15fcd33

Browse files
author
Etsuro Fujita
committed
Doc: Update documentation for asynchronous execution.
Add a note of caution on the performance of asynchronous execution by postgres_fdw. Follow-up for commit 27e1f14. Stephen Frost, a little bit expanded by me. Discussion: https://postgr.es/m/20210506171224.GV20766%40tamriel.snowman.net
1 parent 07af57d commit 15fcd33

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

doc/src/sgml/postgres-fdw.sgml

+10
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,16 @@ OPTIONS (ADD password_required 'false');
401401
A table-level option overrides a server-level option.
402402
The default is <literal>false</literal>.
403403
</para>
404+
405+
<para>
406+
In order to ensure that the data being returned from a foreign server
407+
is consistent, <filename>postgres_fdw</filename> will only open one
408+
connection for a given foreign server and will run all queries against
409+
that server sequentially even if there are multiple foreign tables
410+
involved, unless those tables are subject to different user mappings.
411+
In such a case, it may be more performant to disable this option to
412+
eliminate the overhead associated with running queries asynchronously.
413+
</para>
404414
</listitem>
405415
</varlistentry>
406416

0 commit comments

Comments
 (0)