Only skip pages marked as clean in the visibility map, if the last 32
[PostgreSQL.git] / contrib / pg_stat_statements / pg_stat_statements.sql.in
blob00e715f9714402e2df997a6188e043ab1f432ae8
1 /* $PostgreSQL$ */
3 -- Adjust this setting to control where the objects get created.
4 SET search_path = public;
6 -- Register functions.
7 CREATE FUNCTION pg_stat_statements_reset()
8 RETURNS void
9 AS 'MODULE_PATHNAME'
10 LANGUAGE C;
12 CREATE FUNCTION pg_stat_statements(
13 OUT userid oid,
14 OUT dbid oid,
15 OUT query text,
16 OUT calls int8,
17 OUT total_time float8,
18 OUT rows int8
20 RETURNS SETOF record
21 AS 'MODULE_PATHNAME'
22 LANGUAGE C;
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;