Fri Jul 31 12:16:30 PDT 2009
- Previous message: [Slony1-commit] slony1-engine/src/slonik slonik.c
- Next message: [Slony1-commit] slony1-engine/src/backend slony1_funcs.sql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv1155/backend
Modified Files:
Tag: REL_1_2_STABLE
slony1_funcs.sql
Log Message:
Slonik should recognize PostgreSQL 8.4 as a legitimate supported version.
Fix problem where, with 8.4, a column on pg_class that no longer exists
gets updated by functions that alter/restore tables for/from replication.
Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.98.2.35
retrieving revision 1.98.2.36
diff -C2 -d -r1.98.2.35 -r1.98.2.36
*** slony1_funcs.sql 8 Jul 2009 20:46:02 -0000 1.98.2.35
--- slony1_funcs.sql 31 Jul 2009 19:16:27 -0000 1.98.2.36
***************
*** 4010,4014 ****
);
get diagnostics v_n = row_count;
! if v_n > 0 then
update "pg_catalog".pg_class
set reltriggers = reltriggers - v_n
--- 4010,4014 ----
);
get diagnostics v_n = row_count;
! if (v_n > 0) and exists (select 1 from information_schema.columns where table_name = ''pg_class'' and table_schema = ''pg_catalog'' and column_name = ''reltriggers'') then
update "pg_catalog".pg_class
set reltriggers = reltriggers - v_n
***************
*** 4134,4138 ****
where tgrelid = v_tab_row.indexrelid;
get diagnostics v_n = row_count;
! if v_n > 0 then
update "pg_catalog".pg_class
set reltriggers = reltriggers + v_n
--- 4134,4138 ----
where tgrelid = v_tab_row.indexrelid;
get diagnostics v_n = row_count;
! if (v_n > 0) and exists (select 1 from information_schema.columns where table_name = ''pg_class'' and table_schema = ''pg_catalog'' and column_name = ''reltriggers'') then
update "pg_catalog".pg_class
set reltriggers = reltriggers + v_n
- Previous message: [Slony1-commit] slony1-engine/src/slonik slonik.c
- Next message: [Slony1-commit] slony1-engine/src/backend slony1_funcs.sql
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list