[open-ils-commits] r19758 - trunk/Open-ILS/src/sql/Pg (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Mar 15 23:38:29 EDT 2011


Author: dbs
Date: 2011-03-15 23:38:26 -0400 (Tue, 15 Mar 2011)
New Revision: 19758

Modified:
   trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
Log:
Make DROP statement match new basetype for agg_tsvector

When the CREATE AGGREGATE function was changed to have a basetype
of pg_catalog.agg_tsvector, the corresponding DROP statement was
not changed in a similar fashion; ergo, on creating the schema
a subsequent time, the CREATE statement would fail because the
aggregate function already existed and the transaction would be
rolled back.

Also - do we need to differentiate between PostgreSQL 8.4 and 9.0
here?


Modified: trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql	2011-03-15 22:46:23 UTC (rev 19757)
+++ trunk/Open-ILS/src/sql/Pg/002.functions.aggregate.sql	2011-03-16 03:38:26 UTC (rev 19758)
@@ -21,7 +21,7 @@
 DROP AGGREGATE IF EXISTS public.first(anyelement) CASCADE;
 DROP AGGREGATE IF EXISTS public.last(anyelement) CASCADE;
 DROP AGGREGATE IF EXISTS public.agg_text(text) CASCADE;
-DROP AGGREGATE IF EXISTS public.agg_tsvector(tsvector) CASCADE;
+DROP AGGREGATE IF EXISTS public.agg_tsvector(pg_catalog.tsvector) CASCADE;
 
 CREATE AGGREGATE array_accum (
 	sfunc = array_append,



More information about the open-ils-commits mailing list