From e808179cb2ae80756d51b3b9fb4e6b410bed1378 Mon Sep 17 00:00:00 2001 From: BodoBolero Date: Mon, 26 Feb 2024 15:01:50 +0100 Subject: [PATCH] allow all users in role pg_monitor to monitor their LFC working set --- pgxn/neon/neon--1.0.sql | 2 ++ vendor/postgres-v14 | 2 +- vendor/postgres-v15 | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pgxn/neon/neon--1.0.sql b/pgxn/neon/neon--1.0.sql index 78982b46cd..ee61888573 100644 --- a/pgxn/neon/neon--1.0.sql +++ b/pgxn/neon/neon--1.0.sql @@ -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 diff --git a/vendor/postgres-v14 b/vendor/postgres-v14 index 9fd9794436..4cdba8ec5a 160000 --- a/vendor/postgres-v14 +++ b/vendor/postgres-v14 @@ -1 +1 @@ -Subproject commit 9fd9794436d02fbfe68f8fca5beab218907cec41 +Subproject commit 4cdba8ec5a3868cec4826bbb3f16c1d3d2ac2283 diff --git a/vendor/postgres-v15 b/vendor/postgres-v15 index 257aaefb25..0ec04712d5 160000 --- a/vendor/postgres-v15 +++ b/vendor/postgres-v15 @@ -1 +1 @@ -Subproject commit 257aaefb251c5c85c44652c01bf68c43db62748a +Subproject commit 0ec04712d55539550278595e853c172f7aa5fe3e