Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: "Bossart, Nathan" <bossartn(at)amazon(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().
Date: 2021-10-24 16:50:58
Message-ID: d87b3a4fa3dacb103a8f3f50751ec9e638b2e2b1.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 2021-10-23 at 20:42 +0000, Bossart, Nathan wrote:
> The predefined roles documentation notes
> that members of pg_signal_backend cannot signal superuser-owned
> backends, but AFAICT pg_log_backend_memory_contexts() has no such
> restriction at the moment. Should we add this?

Added, good catch.

> This is unrelated to this patch, but should we also consider opening
> up pg_reload_conf() and pg_rotate_logfile() to members of
> pg_signal_backend? Those are the other "server signaling functions"
> I
> see in the docs.

Those are actually signalling the postmaster, not an ordinary backend.
Also, those functions are already GRANTable, so I think we should leave
them as-is.

Regards,
Jeff Davis

Attachment Content-Type Size
0001-Allow-pg_signal_backend-members-to-call-pg_log_backe.patch text/x-patch 6.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2021-10-24 17:04:48 Re: Allow pg_signal_backend members to use pg_log_backend_memory_stats().
Previous Message David G. Johnston 2021-10-24 16:47:37 Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.