Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
525de8d5
Commit
525de8d5
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Improve /contrib/pg_buffercache installation to use BEGIN/COMMIT,
improve examples. Mark Kirkwood
parent
136bea15
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/pg_buffercache/README.pg_buffercache
+3
-2
3 additions, 2 deletions
contrib/pg_buffercache/README.pg_buffercache
contrib/pg_buffercache/pg_buffercache.sql.in
+3
-0
3 additions, 0 deletions
contrib/pg_buffercache/pg_buffercache.sql.in
with
6 additions
and
2 deletions
contrib/pg_buffercache/README.pg_buffercache
+
3
−
2
View file @
525de8d5
...
@@ -76,8 +76,9 @@ Sample output
...
@@ -76,8 +76,9 @@ Sample output
isdirty boolean);
isdirty boolean);
regression=# SELECT c.relname, count(*) AS buffers
regression=# SELECT c.relname, count(*) AS buffers
FROM pg_class c, pg_buffercache b
FROM pg_class c INNER JOIN pg_buffercache b
WHERE b.relfilenode = c.relfilenode
ON b.relfilenode = c.relfilenode INNER JOIN pg_database d
ON (b.reldatabase = d.oid AND d.datname = current_database())
GROUP BY c.relname
GROUP BY c.relname
ORDER BY 2 DESC LIMIT 10;
ORDER BY 2 DESC LIMIT 10;
relname | buffers
relname | buffers
...
...
This diff is collapsed.
Click to expand it.
contrib/pg_buffercache/pg_buffercache.sql.in
+
3
−
0
View file @
525de8d5
-- Adjust this setting to control where the objects get created.
-- Adjust this setting to control where the objects get created.
BEGIN;
SET search_path = public;
SET search_path = public;
-- Register the function.
-- Register the function.
...
@@ -16,3 +17,5 @@ CREATE VIEW pg_buffercache AS
...
@@ -16,3 +17,5 @@ CREATE VIEW pg_buffercache AS
-- Don't want these to be available at public.
-- Don't want these to be available at public.
REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
REVOKE ALL ON pg_buffercache FROM PUBLIC;
REVOKE ALL ON pg_buffercache FROM PUBLIC;
COMMIT;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment