Mon Dec 4 07:42:32 PST 2006
- Previous message: [Slony1-commit] By devrim: Patch from Hiroshi: I have been receiving the problem of the
- Next message: [Slony1-commit] By darcyb: Set escape_string_warning to off, to prevent pgsql log noise
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Set escape_string_warning to off, to prevent pgsql log noise when replicating cross version, as per Jeff Davis.
Modified Files:
--------------
slony1-engine/src/slon:
dbutils.c (r1.24 -> r1.25)
-------------- next part --------------
Index: dbutils.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/slon/dbutils.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -Lsrc/slon/dbutils.c -Lsrc/slon/dbutils.c -u -w -r1.24 -r1.25
--- src/slon/dbutils.c
+++ src/slon/dbutils.c
@@ -126,6 +126,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'");
- Previous message: [Slony1-commit] By devrim: Patch from Hiroshi: I have been receiving the problem of the
- Next message: [Slony1-commit] By darcyb: Set escape_string_warning to off, to prevent pgsql log noise
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list