Chris Browne cbbrowne at lists.slony.info
Tue Jul 21 14:15:53 PDT 2009
Update of /home/cvsd/slony1/slony1-engine/src/slon
In directory main.slony.info:/tmp/cvs-serv8262/slon

Modified Files:
      Tag: REL_2_0_STABLE
	dbutils.c 
Log Message:
Addressing autovacuum change in PostgreSQL 8.4

1.  Need to have v84.sql files

2.  Need for slonik to install v84.sql files, when apropos

3.  v84.sql functions file implements alternative implementation
    which pulls the attribute from pg_class rather than the former
    pg_autovacuum table


Index: dbutils.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/slon/dbutils.c,v
retrieving revision 1.30.2.1
retrieving revision 1.30.2.2
diff -C2 -d -r1.30.2.1 -r1.30.2.2
*** dbutils.c	20 Jul 2009 22:30:10 -0000	1.30.2.1
--- dbutils.c	21 Jul 2009 21:15:51 -0000	1.30.2.2
***************
*** 127,131 ****
  			 "version for \"%s\" is %d\n", conninfo, conn->pg_version);
  
! 	if (conn->pg_version >= 80100)
  	{
  		slon_mkquery(&query, "set escape_string_warning to 'off'");
--- 127,131 ----
  			 "version for \"%s\" is %d\n", conninfo, conn->pg_version);
  
! 	if (conn->pg_version >= 80300)
  	{
  		slon_mkquery(&query, "set escape_string_warning to 'off'");
***************
*** 136,142 ****
  		}
  		PQclear(res);
! 	}
! 	if (conn->pg_version >= 80200)
! 	{
  		slon_mkquery(&query, "set standard_conforming_strings to 'off'");
  		res = PQexec(dbconn, dstring_data(&query));
--- 136,140 ----
  		}
  		PQclear(res);
! 
  		slon_mkquery(&query, "set standard_conforming_strings to 'off'");
  		res = PQexec(dbconn, dstring_data(&query));



More information about the Slony1-commit mailing list