mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Improve /contrib/pg_buffercache installation to use BEGIN/COMMIT,
improve examples. Mark Kirkwood
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
BEGIN;
|
||||
SET search_path = public;
|
||||
|
||||
-- Register the function.
|
||||
@ -16,3 +17,5 @@ CREATE VIEW pg_buffercache AS
|
||||
-- Don't want these to be available at public.
|
||||
REVOKE ALL ON FUNCTION pg_buffercache_pages() FROM PUBLIC;
|
||||
REVOKE ALL ON pg_buffercache FROM PUBLIC;
|
||||
|
||||
COMMIT;
|
||||
|
Reference in New Issue
Block a user