mirror of
https://github.com/postgres/postgres.git
synced 2025-06-20 15:22:23 +03:00
postgres_fdw: Allow fetch_size to be set per-table or per-server.
The default fetch size of 100 rows might not be right in every environment, so allow users to configure it. Corey Huinker, reviewed by Kyotaro Horiguchi, Andres Freund, and me.
This commit is contained in:
@ -290,18 +290,31 @@
|
||||
be considered shippable to the remote server.
|
||||
This option can only be specified for foreign servers, not per-table.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
When using the <literal>extensions</literal> option, <emphasis>it is the
|
||||
user's responsibility</> that the listed extensions exist and behave
|
||||
identically on both the local and remote servers. Otherwise, remote
|
||||
queries may fail or behave unexpectedly.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>fetch_size</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This option specifies the number of rows <filename>postgres_fdw</>
|
||||
should get in each fetch operation. It can be specified for a foreign
|
||||
table or a foreign server. The option specified on a table overrides
|
||||
an option specified for the server.
|
||||
The default is <literal>100</>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
</variablelist>
|
||||
|
||||
<para>
|
||||
When using the <literal>extensions</literal> option, <emphasis>it is the
|
||||
user's responsibility</> that the listed extensions exist and behave
|
||||
identically on both the local and remote servers. Otherwise, remote
|
||||
queries may fail or behave unexpectedly.
|
||||
</para>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
|
Reference in New Issue
Block a user