Skip to content

Commit aa4e0a9

Browse files
author
Alexander Korotkov
committed
Fix permissions on pg_wait_sampling_history and pg_wait_sampling_profile.
1 parent 34e9e47 commit aa4e0a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pg_wait_sampling--1.0.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ LANGUAGE C VOLATILE STRICT;
3131
CREATE VIEW pg_wait_sampling_history AS
3232
SELECT * FROM pg_wait_sampling_get_history();
3333

34+
GRANT SELECT ON pg_wait_sampling_history TO PUBLIC;
35+
3436
CREATE FUNCTION pg_wait_sampling_get_profile (
3537
OUT pid int4,
3638
OUT event_type text,
@@ -44,6 +46,8 @@ LANGUAGE C VOLATILE STRICT;
4446
CREATE VIEW pg_wait_sampling_profile AS
4547
SELECT * FROM pg_wait_sampling_get_profile();
4648

49+
GRANT SELECT ON pg_wait_sampling_profile TO PUBLIC;
50+
4751
CREATE FUNCTION pg_wait_sampling_reset_profile()
4852
RETURNS void
4953
AS 'MODULE_PATHNAME'

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy