rrs-commit: r20 - trunk

decibel at decibel.org decibel at decibel.org
Sat Jan 22 02:53:01 GMT 2005


Author: decibel
Date: Sat Jan 22 02:53:01 2005
New Revision: 20

Modified:
   trunk/rrs_functions.sql
Log:
Make update definer security, and remove grants to public that aren't needed anymore

Modified: trunk/rrs_functions.sql
==============================================================================
--- trunk/rrs_functions.sql	(original)
+++ trunk/rrs_functions.sql	Sat Jan 22 02:53:01 2005
@@ -150,7 +150,9 @@
     RETURN v_total_rows;
 END;
 '
-    LANGUAGE plpgsql;
+    LANGUAGE plpgsql
+    SECURITY DEFINER
+;
 
 --
 -- TOC entry 17 (OID 591228975)
@@ -436,9 +438,5 @@
     LANGUAGE plpgsql;
 
 GRANT EXECUTE ON FUNCTION update() TO public;
-GRANT EXECUTE ON FUNCTION update_buckets() TO public;
-GRANT EXECUTE ON FUNCTION add_buckets(int, interval, timestamptz, timestamptz) TO public;
-GRANT EXECUTE ON FUNCTION interval_time(timestamptz, interval) TO public;
-GRANT EXECUTE ON FUNCTION max_end_time_to_delete(int) TO public;
 
 -- vi: expandtab sw=4 ts=4


More information about the rrs-commit mailing list