Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0a83f249
Commit
0a83f249
authored
Aug 28, 2012
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pg_stat_statements--1.0.sql, too.
Per Peter Geoghegan.
parent
9db098df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
contrib/pg_stat_statements/pg_stat_statements--1.0.sql
contrib/pg_stat_statements/pg_stat_statements--1.0.sql
+0
-39
No files found.
contrib/pg_stat_statements/pg_stat_statements--1.0.sql
deleted
100644 → 0
View file @
9db098df
/* contrib/pg_stat_statements/pg_stat_statements--1.0.sql */
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\
echo
Use
"CREATE EXTENSION pg_stat_statements"
to
load
this
file
.
\
quit
-- Register functions.
CREATE
FUNCTION
pg_stat_statements_reset
()
RETURNS
void
AS
'MODULE_PATHNAME'
LANGUAGE
C
;
CREATE
FUNCTION
pg_stat_statements
(
OUT
userid
oid
,
OUT
dbid
oid
,
OUT
query
text
,
OUT
calls
int8
,
OUT
total_time
float8
,
OUT
rows
int8
,
OUT
shared_blks_hit
int8
,
OUT
shared_blks_read
int8
,
OUT
shared_blks_written
int8
,
OUT
local_blks_hit
int8
,
OUT
local_blks_read
int8
,
OUT
local_blks_written
int8
,
OUT
temp_blks_read
int8
,
OUT
temp_blks_written
int8
)
RETURNS
SETOF
record
AS
'MODULE_PATHNAME'
LANGUAGE
C
;
-- Register a view on the function for ease of use.
CREATE
VIEW
pg_stat_statements
AS
SELECT
*
FROM
pg_stat_statements
();
GRANT
SELECT
ON
pg_stat_statements
TO
PUBLIC
;
-- Don't want this to be available to non-superusers.
REVOKE
ALL
ON
FUNCTION
pg_stat_statements_reset
()
FROM
PUBLIC
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment