Bug # 119
authorSteve Singer <ssinger@ca.afilias.info>
Thu, 13 May 2010 19:41:40 +0000 (19:41 +0000)
committerSteve Singer <ssinger@ca.afilias.info>
Thu, 13 May 2010 19:41:40 +0000 (19:41 +0000)
cloneNodeFinish() called updateRelOid() that was looking at tab_id in
sl_sequence but the column is named seq_id

Report/patch from Chirag Dave (cdave@ca.afilias.info)

Merge from REL_2_0_STABLE

RELEASE
src/backend/slony1_funcs.sql

diff --git a/RELEASE b/RELEASE
index eecd00e204a15ea76ca2949a5c57237f7411ebf3..79a6f1f6a7cc1a917f1bdef867636d597a56ba95 100644 (file)
--- a/RELEASE
+++ b/RELEASE
@@ -1,4 +1,4 @@
-$Id: RELEASE,v 1.4 2009-06-11 19:03:44 cbbrowne Exp $
+$Id: RELEASE,v 1.5 2010-05-13 19:41:40 ssinger Exp $
 
 RELEASE 2.0.0
 
@@ -21,3 +21,19 @@ RELEASE 2.0.1
   resulted from the change of snapshot handling which used to involve 3 columns where in 8.3+, there is
   now a snapshot type.
 
+
+RELEASE 2.0.4
+
+- script syntax error Bug # 108
+
+- Fixed memory corruption issue introduced in 2.0.3 with replicating large rows
+
+- cloneNodeFinish() references the proper column in sl_sequence Bug # 119
+
+RELEASE 2.0.4
+
+- script syntax error Bug # 108
+
+- Fixed memory corruption issue introduced in 2.0.3 with replicating large rows
+
+- cloneNodeFinish() references the proper column in sl_sequence Bug # 119
index 15a956866f9bc72327180707a6cd9fa811944676..8b4f53d889e8a03104c0632fa58c3cac078d9af3 100644 (file)
@@ -6,7 +6,7 @@
 --     Copyright (c) 2003-2009, PostgreSQL Global Development Group
 --     Author: Jan Wieck, Afilias USA INC.
 --
--- $Id: slony1_funcs.sql,v 1.158 2010-02-12 17:16:05 cbbrowne Exp $
+-- $Id: slony1_funcs.sql,v 1.159 2010-05-13 19:41:40 ssinger Exp $
 -- ----------------------------------------------------------------------
 
 -- **********************************************************************
@@ -5128,7 +5128,7 @@ begin
 
        for prec in select seq_id from @NAMESPACE@.sl_sequence loop
                update @NAMESPACE@.sl_sequence set seq_reloid = (select oid from pg_class pc where relkind <> 'S' and not exists (select 1 from @NAMESPACE@.sl_sequence t2 where t2.seq_reloid = pc.oid) limit 1)
-               where tab_id = prec.seq_id;
+               where seq_id = prec.seq_id;
        end loop;
 
        for prec in select seq_id, seq_relname, seq_nspname from @NAMESPACE@.sl_sequence loop