0

I have the following query to get the settings for max_running_jobs.

select *    
from pg_settings 
where name = 'cron.max_running_jobs';

I'm able to get the records from postgres user but not with the non-postgres user.

Any grant/permission I got missed?

MAK
  • 6,824
  • 25
  • 74
  • 131

1 Answers1

0

by this REF: https://pgpedia.info/p/pg_settings.html

the permission should be:

GRANT SELECT, UPDATE ON pg_settings TO PUBLIC;

you can confirm it running:

SELECT grantee, string_agg(privilege_type, ', ') AS privileges
FROM information_schema.role_table_grants 
WHERE table_name='pg_settings'   
GROUP BY grantee;
Adelino Silva
  • 577
  • 3
  • 16