Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite872432

Browse files
committed
Doc: improve documentation of pg_signal_backend default role.
Give it an explanatory para like the other default roles have.Don't imply that it can send any signal whatever.In passing, reorder the table entries and explanatory parasfor the default roles into some semblance of consistency.Ian Barwick, tweaked a bit by me.Discussion:https://postgr.es/m/89907e32-76f3-7282-a89c-ea19c722fe5d@2ndquadrant.com
1 parentf2cf22a commite872432

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

‎doc/src/sgml/user-manag.sgml‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -530,17 +530,17 @@ DROP ROLE doomed_role;
530530
<entry>Execute monitoring functions that may take <literal>ACCESS SHARE</literal> locks on tables,
531531
potentially for a long time.</entry>
532532
</row>
533-
<row>
534-
<entry>pg_signal_backend</entry>
535-
<entry>Send signals to other backends (eg: cancel query, terminate).</entry>
536-
</row>
537533
<row>
538534
<entry>pg_monitor</entry>
539535
<entry>Read/execute various monitoring views and functions.
540536
This role is a member of <literal>pg_read_all_settings</literal>,
541537
<literal>pg_read_all_stats</literal> and
542538
<literal>pg_stat_scan_tables</literal>.</entry>
543539
</row>
540+
<row>
541+
<entry>pg_signal_backend</entry>
542+
<entry>Signal another backend to cancel a query or terminate its session.</entry>
543+
</row>
544544
</tbody>
545545
</tgroup>
546546
</table>
@@ -554,14 +554,23 @@ DROP ROLE doomed_role;
554554
other system information normally restricted to superusers.
555555
</para>
556556

557+
<para>
558+
The <literal>pg_signal_backend</literal> role is intended to allow
559+
administrators to enable trusted, but non-superuser, roles to send signals
560+
to other backends. Currently this role enables sending of signals for
561+
canceling a query on another backend or terminating its session. A user
562+
granted this role cannot however send signals to a backend owned by a
563+
superuser. See <xref linkend="functions-admin-signal">.
564+
</para>
565+
557566
<para>
558567
Care should be taken when granting these roles to ensure they are only used where
559568
needed to perform the desired monitoring.
560569
</para>
561570

562571
<para>
563-
Administrators can grant access to these roles to users using the GRANT
564-
command:
572+
Administrators can grant access to these roles to users using the
573+
<xref linkend="sql-grant">command, for example:
565574

566575
<programlisting>
567576
GRANT pg_signal_backend TO admin_user;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp