allow all users in role pg_monitor to monitor their LFC working set

This commit is contained in:
BodoBolero
2024-02-26 15:01:50 +01:00
parent cf73c3c79e
commit e808179cb2
3 changed files with 4 additions and 2 deletions

View File

@@ -32,6 +32,8 @@ RETURNS integer
AS 'MODULE_PATHNAME', 'approximate_working_set_size'
LANGUAGE C PARALLEL SAFE;
GRANT EXECUTE ON FUNCTION approximate_working_set_size() TO pg_monitor;
-- Create a view for convenient access.
CREATE VIEW local_cache AS
SELECT P.* FROM local_cache_pages() AS P