CVS User Account cvsuser
Mon Dec 4 07:43:43 PST 2006
Log Message:
-----------
Set escape_string_warning to off, to prevent pgsql log noise when replicating cross version, as per Jeff Davis.

Tags:
----
REL_1_2_STABLE

Modified Files:
--------------
    slony1-engine/src/slon:
        dbutils.c (r1.23.2.2 -> r1.23.2.3)

-------------- next part --------------
Index: dbutils.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/dbutils.c,v
retrieving revision 1.23.2.2
retrieving revision 1.23.2.3
diff -Lsrc/slon/dbutils.c -Lsrc/slon/dbutils.c -u -w -r1.23.2.2 -r1.23.2.3
--- src/slon/dbutils.c
+++ src/slon/dbutils.c
@@ -129,6 +129,16 @@
         slon_log(SLON_DEBUG4,
                 "version for \"%s\" is %d\n", conninfo, conn->pg_version);
 
+	if (conn->pg_version >= 80100)
+        {
+                slon_mkquery(&query, "set escape_string_warning to 'off'");
+                res = PQexec(dbconn, dstring_data(&query));
+                if (!(PQresultStatus(res) == PGRES_COMMAND_OK))
+                {
+                        slon_log(SLON_ERROR, "Unable to set escape_string_warning to off\n");
+                }
+                PQclear(res);
+        }
 	if (conn->pg_version >= 80200)
 	{
 		slon_mkquery(&query, "set standard_conforming_strings to 'off'");



More information about the Slony1-commit mailing list