From 5b86fedfb57ea943f883a13c6d50c5a9e2a1cc57 Mon Sep 17 00:00:00 2001
From: Tom Lane
Date: Fri, 22 Mar 2013 17:22:31 -0400
Subject: Document cross-version compatibility issues for contrib/postgres_fdw.
One of the use-cases for postgres_fdw is extracting data from older PG
servers, so cross-version compatibility is important. Document what we
can do here, and further annotate some of the coding choices that create
compatibility constraints. In passing, remove one unnecessary
incompatibility with old servers, namely assuming that we didn't need to
quote the timezone name 'UTC'.
---
doc/src/sgml/postgres-fdw.sgml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
(limited to 'doc/src')
diff --git a/doc/src/sgml/postgres-fdw.sgml b/doc/src/sgml/postgres-fdw.sgml
index 61cc2aafc24..4aa798ac2ee 100644
--- a/doc/src/sgml/postgres-fdw.sgml
+++ b/doc/src/sgml/postgres-fdw.sgml
@@ -318,6 +318,26 @@
+
+ Cross-Version Compatibility
+
+
+ postgres_fdw> can be used with remote servers dating back
+ to PostgreSQL> 8.3. Read-only capability is available
+ back to 8.1. A limitation however is that postgres_fdw>
+ generally assumes that immutable built-in functions and operators are
+ safe to send to the remote server for execution, if they appear in a
+ WHERE> clause for a foreign table. Thus, a built-in
+ function that was added since the remote server's release might be sent
+ to it for execution, resulting in function does not exist> or
+ a similar error. This type of failure can be worked around by
+ rewriting the query, for example by embedding the foreign table
+ reference in a sub-SELECT> with OFFSET 0> as an
+ optimization fence, and placing the problematic function or operator
+ outside the sub-SELECT>.
+
+
+
Author
--
cgit v1.2.3