Index: openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql,v
diff -u -r1.4.2.1 -r1.4.2.2
--- openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql	22 Oct 2018 10:41:45 -0000	1.4.2.1
+++ openacs-4/packages/acs-kernel/sql/postgresql/upgrade/upgrade-5.8.0d3-5.8.0d4.sql	22 Oct 2018 17:47:29 -0000	1.4.2.2
@@ -45,6 +45,9 @@
     IF cmp_pg_version('8.4') >= 0 THEN
         -- recursive permissions functions - START
 
+	DROP FUNCTION IF EXISTS acs_permission__permission_p(integer,integer,character varying);
+	DROP FUNCTION IF EXISTS acs_permission__permission_p_recursive_array(integer[],integer,character varying);	
+	
         --
         -- procedure acs_permission__permission_p/3
         --
