File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
src/backend/access/transam Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -16471,15 +16471,15 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1647116471 <literal><function>pg_xlog_replay_pause()</function></literal>
1647216472 </entry>
1647316473 <entry><type>void</type></entry>
16474- <entry>Pauses recovery immediately.
16474+ <entry>Pauses recovery immediately (restricted to superusers) .
1647516475 </entry>
1647616476 </row>
1647716477 <row>
1647816478 <entry>
1647916479 <literal><function>pg_xlog_replay_resume()</function></literal>
1648016480 </entry>
1648116481 <entry><type>void</type></entry>
16482- <entry>Restarts recovery if it was paused.
16482+ <entry>Restarts recovery if it was paused (restricted to superusers) .
1648316483 </entry>
1648416484 </row>
1648516485 </tbody>
@@ -16587,7 +16587,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1658716587 for controlling and interacting with replication features.
1658816588 See <xref linkend="streaming-replication">
1658916589 and <xref linkend="streaming-replication-slots"> for information about the
16590- underlying features.
16590+ underlying features. Use of these functions is restricted to superusers.
1659116591 </para>
1659216592
1659316593 <para>
Original file line number Diff line number Diff line change @@ -382,11 +382,6 @@ pg_xlog_replay_resume(PG_FUNCTION_ARGS)
382382Datum
383383pg_is_xlog_replay_paused (PG_FUNCTION_ARGS )
384384{
385- if (!superuser ())
386- ereport (ERROR ,
387- (errcode (ERRCODE_INSUFFICIENT_PRIVILEGE ),
388- (errmsg ("must be superuser to control recovery" ))));
389-
390385 if (!RecoveryInProgress ())
391386 ereport (ERROR ,
392387 (errcode (ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE ),
You can’t perform that action at this time.
0 commit comments