Mon Sep 26 20:31:49 PDT 2005
- Previous message: [Slony1-commit] By cbbrowne: Add an index on sl_log_1(log_xid) as sometimes log_origin
- Next message: [Slony1-commit] By cbbrowne: ----------- Fix UTF-8 string truncation bug This was
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Add an index on sl_log_1(log_xid) as sometimes log_origin isn't a useful discriminant
Modified Files:
--------------
slony1-engine/src/backend:
slony1_base.sql (r1.27 -> r1.28)
-------------- next part --------------
Index: slony1_base.sql
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_base.sql,v
retrieving revision 1.27
retrieving revision 1.28
diff -Lsrc/backend/slony1_base.sql -Lsrc/backend/slony1_base.sql -u -w -r1.27 -r1.28
--- src/backend/slony1_base.sql
+++ src/backend/slony1_base.sql
@@ -389,6 +389,10 @@
create index sl_log_1_idx1 on @NAMESPACE at .sl_log_1
(log_origin, log_xid @NAMESPACE at .xxid_ops, log_actionseq);
+-- Add in an additional index as sometimes log_origin isn't a useful discriminant
+create index sl_log_1_idx2 on @NAMESPACE at .sl_log_1
+ (log_xid @NAMESPACE at .xxid_ops);
+
comment on table @NAMESPACE at .sl_log_1 is 'Stores each change to be propagated to subscriber nodes';
comment on column @NAMESPACE at .sl_log_1.log_origin is 'Origin node from which the change came';
comment on column @NAMESPACE at .sl_log_1.log_xid is 'Transaction ID on the origin node';
@@ -416,6 +420,10 @@
create index sl_log_2_idx1 on @NAMESPACE at .sl_log_2
(log_origin, log_xid @NAMESPACE at .xxid_ops, log_actionseq);
+-- Add in an additional index as sometimes log_origin isn't a useful discriminant
+create index sl_log_2_idx2 on @NAMESPACE at .sl_log_2
+ (log_xid @NAMESPACE at .xxid_ops);
+
-- **********************************************************************
-- * Views
- Previous message: [Slony1-commit] By cbbrowne: Add an index on sl_log_1(log_xid) as sometimes log_origin
- Next message: [Slony1-commit] By cbbrowne: ----------- Fix UTF-8 string truncation bug This was
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list