[open-ils-commits] r10440 - trunk/Open-ILS/src/sql/Pg

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 25 13:49:59 EDT 2008


Author: dbs
Date: 2008-08-25 13:49:56 -0400 (Mon, 25 Aug 2008)
New Revision: 10440

Added:
   trunk/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql
Log:
Enable LIKE to use an index for authority.full_rec.value
(on database clusters with a locale other than C or POSIX)


Modified: trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql	2008-08-25 16:44:37 UTC (rev 10439)
+++ trunk/Open-ILS/src/sql/Pg/011.schema.authority.sql	2008-08-25 17:49:56 UTC (rev 10440)
@@ -76,6 +76,8 @@
 	FOR EACH ROW EXECUTE PROCEDURE tsearch2(index_vector, value);
 
 CREATE INDEX authority_full_rec_index_vector_idx ON authority.full_rec USING GIST (index_vector);
+/* Enable LIKE to use an index for database clusters with locales other than C or POSIX */
+CREATE INDEX authority_full_rec_value_tpo_index ON authority.full_rec (value text_pattern_ops);
 
 CREATE OR REPLACE VIEW authority.tracing_links AS
 	SELECT	main.record AS record,

Added: trunk/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/1.2.3-1.4-upgrade-db.sql	2008-08-25 17:49:56 UTC (rev 10440)
@@ -0,0 +1,2 @@
+/* Enable LIKE to use an index for database clusters with locales other than C or POSIX */
+CREATE INDEX authority_full_rec_value_tpo_index ON authority.full_rec (value text_pattern_ops);



More information about the open-ils-commits mailing list