Fri Jul 31 12:20:28 PDT 2009
- Previous message: [Slony1-commit] slony1-engine/src/backend slony1_funcs.sql
- Next message: [Slony1-commit] slony1-www/content news.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv1372/backend
Modified Files:
Tag: REL_2_0_STABLE
slony1_funcs.sql
Log Message:
On 8.4, pg_class.reltriggers no longer exists, so query that updates this
should check for existence first
Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.145.2.14
retrieving revision 1.145.2.15
diff -C2 -d -r1.145.2.14 -r1.145.2.15
*** slony1_funcs.sql 28 Jul 2009 16:03:49 -0000 1.145.2.14
--- slony1_funcs.sql 31 Jul 2009 19:20:26 -0000 1.145.2.15
***************
*** 4052,4056 ****
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
--- 4052,4056 ----
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/backend slony1_funcs.sql
- Next message: [Slony1-commit] slony1-www/content news.txt
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list