Index: openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql,v
diff -u -r1.8 -r1.9
--- openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	11 Apr 2001 12:41:21 -0000	1.8
+++ openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	29 Apr 2001 19:17:06 -0000	1.9
@@ -54,6 +54,15 @@
 end;' language 'plpgsql';
 
 
+create function instr(varchar,char) returns integer as '
+declare
+        str             alias for $1;
+        pat             alias for $2;
+begin
+        return instr(str,pat,1,1);
+end;' language 'plpgsql';
+
+
 create function get_func_drop_command (varchar) returns varchar as '
 declare
         fname           alias for $1;
