3 -- Adjust this setting to control where the objects get created.
4 SET search_path
= public;
7 CREATE FUNCTION pg_stat_statements_reset()
12 CREATE FUNCTION pg_stat_statements(
17 OUT total_time float8
,
24 -- Register a view on the function for ease of use.
25 CREATE VIEW pg_stat_statements
AS
26 SELECT * FROM pg_stat_statements();
28 GRANT SELECT ON pg_stat_statements
TO PUBLIC;
30 -- Don't want this to be available to non-superusers.
31 REVOKE ALL ON FUNCTION pg_stat_statements_reset() FROM PUBLIC;