Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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)