Fix for bug282.
authorJan Wieck <JanWieck@Yahoo.com>
Fri, 14 Dec 2012 18:24:39 +0000 (13:24 -0500)
committerJan Wieck <JanWieck@Yahoo.com>
Fri, 14 Dec 2012 18:24:39 +0000 (13:24 -0500)
commit47c6f3876a66c4f461ff044080db37e124401847
tree37d64436b3274e7e1817b40cef366575eccdd923
parentd23fed03c9a0588608e38981ddc0f8e356e7198b
Fix for bug282.

There was a problem with the new COPY protocol when
a data type or domain used in a replicated column
is not in slon's search_path. SPI does not provide
a mechanism to get the namespace name of a columns
data type.

Instead of adding explicit type casting to the apply
queries and handing the data in as TEXT Datums, we
now use the same technique that PL/pgSQL uses at
at least since 8.3 and convert the TEXT datums into
the requested data type ourselves.
src/backend/slony1_funcs.c
src/slon/remote_worker.c