Skip to content

Commit e28a271

Browse files
committed
doc: mention of postpostgres_fdw INSERT ON CONFLICT limitation
Reported-by: Fujii Masao Discussion: https://postgr.es/m/47801526-d017-4c89-9f52-c02c449a139b@oss.nttdata.com Author: Fujii Masao Backpatch-through: master
1 parent cf3bb26 commit e28a271

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/src/sgml/postgres-fdw.sgml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,10 @@ postgres=# SELECT postgres_fdw_disconnect_all();
10961096
<para>
10971097
<filename>postgres_fdw</filename> can be used with remote servers dating back
10981098
to <productname>PostgreSQL</productname> 8.3. Read-only capability is available
1099-
back to 8.1. A limitation however is that <filename>postgres_fdw</filename>
1099+
back to 8.1.
1100+
</para>
1101+
<para>
1102+
A limitation however is that <filename>postgres_fdw</filename>
11001103
generally assumes that immutable built-in functions and operators are
11011104
safe to send to the remote server for execution, if they appear in a
11021105
<literal>WHERE</literal> clause for a foreign table. Thus, a built-in
@@ -1108,6 +1111,13 @@ postgres=# SELECT postgres_fdw_disconnect_all();
11081111
optimization fence, and placing the problematic function or operator
11091112
outside the sub-<literal>SELECT</literal>.
11101113
</para>
1114+
<para>
1115+
Another limitation is that when executing <command>INSERT</command>
1116+
statements with an <literal>ON CONFLICT DO NOTHING</literal> clause on
1117+
a foreign table, the remote server must be running
1118+
<productname>PostgreSQL</productname> 9.5 or later,
1119+
as earlier versions do not support this feature.
1120+
</para>
11111121
</sect2>
11121122

11131123
<sect2 id="postgres-fdw-wait-events">

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy