Fri Sep 12 09:11:27 PDT 2008
- Previous message: [Slony1-commit] slony1-engine/tools check_slon.sh check_slony_cluster.sh launch_clusters.sh mkslonconf.sh pull-gborg-mail.sh release_checklist.sh search-logs.sh
- Next message: [Slony1-commit] slony1-engine RELEASE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/src/backend
In directory main.slony.info:/tmp/cvs-serv12263
Modified Files:
Tag: REL_1_2_STABLE
slony1_funcs.sql
Log Message:
Let storeTrigger() check if the requested entry in sl_trigger already
exists and suppress all the work (which requires an access exclusive
lock) if so.
Jan
Index: slony1_funcs.sql
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/backend/slony1_funcs.sql,v
retrieving revision 1.98.2.29
retrieving revision 1.98.2.30
diff -C2 -d -r1.98.2.29 -r1.98.2.30
*** slony1_funcs.sql 12 Sep 2008 16:04:39 -0000 1.98.2.29
--- slony1_funcs.sql 12 Sep 2008 16:11:25 -0000 1.98.2.30
***************
*** 3543,3546 ****
--- 3543,3556 ----
-- ----
+ -- Do nothing if the sl_trigger entry already exists.
+ -- ----
+ if exists (select 1 from @NAMESPACE at .sl_trigger
+ where trig_tabid = p_trig_tabid
+ and trig_tgname = p_trig_tgname)
+ then
+ return 0;
+ end if;
+
+ -- ----
-- Get the current table status (altered or not)
-- ----
- Previous message: [Slony1-commit] slony1-engine/tools check_slon.sh check_slony_cluster.sh launch_clusters.sh mkslonconf.sh pull-gborg-mail.sh release_checklist.sh search-logs.sh
- Next message: [Slony1-commit] slony1-engine RELEASE
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list