@ -95,8 +95,8 @@
referenced columns of the remote table. Although <filename>postgres_fdw</filename>
referenced columns of the remote table. Although <filename>postgres_fdw</filename>
is currently rather forgiving about performing data type conversions at
is currently rather forgiving about performing data type conversions at
need, surprising semantic anomalies may arise when types or collations do
need, surprising semantic anomalies may arise when types or collations do
not match, due to the remote server interpreting <literal>WHERE</literal> clause s
not match, due to the remote server interpreting query condition s
slightly differently from the local server.
differently from the local server.
</para>
</para>
<para>
<para>
@ -537,6 +537,17 @@ OPTIONS (ADD password_required 'false');
need to turn this off if the remote server has a different set of
need to turn this off if the remote server has a different set of
collation names than the local server does, which is likely to be the
collation names than the local server does, which is likely to be the
case if it's running on a different operating system.
case if it's running on a different operating system.
If you do so, however, there is a very severe risk that the imported
table columns' collations will not match the underlying data, resulting
in anomalous query behavior.
</para>
<para>
Even when this parameter is set to <literal>true</literal>, importing
columns whose collation is the remote server's default can be risky.
They will be imported with <literal>COLLATE "default"</literal>, which
will select the local server's default collation, which could be
different.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
@ -614,9 +625,9 @@ OPTIONS (ADD password_required 'false');
establishes to foreign servers are kept open in the local session
establishes to foreign servers are kept open in the local session
for re-use.
for re-use.
</para>
</para>
<variablelist>
<variablelist>
<varlistentry>
<varlistentry>
<term><literal>keep_connections</literal> (<type>boolean</type>)</term>
<term><literal>keep_connections</literal> (<type>boolean</type>)</term>
<listitem>
<listitem>
@ -630,7 +641,7 @@ OPTIONS (ADD password_required 'false');
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
</variablelist>
</variablelist>
</sect3>
</sect3>
</sect2>
</sect2>