diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
new file mode 100644
index c715ca2..1cc80a5
*** a/doc/src/sgml/func.sgml
--- b/doc/src/sgml/func.sgml
*************** postgres=# SELECT * FROM pg_xlogfile_nam
*** 16469,16475 ****
          <literal><function>pg_xlog_replay_pause()</function></literal>
          </entry>
         <entry><type>void</type></entry>
!        <entry>Pauses recovery immediately.
         </entry>
        </row>
        <row>
--- 16469,16475 ----
          <literal><function>pg_xlog_replay_pause()</function></literal>
          </entry>
         <entry><type>void</type></entry>
!        <entry>Pauses recovery immediately (restricted to superusers).
         </entry>
        </row>
        <row>
*************** postgres=# SELECT * FROM pg_xlogfile_nam
*** 16477,16483 ****
          <literal><function>pg_xlog_replay_resume()</function></literal>
          </entry>
         <entry><type>void</type></entry>
!        <entry>Restarts recovery if it was paused.
         </entry>
        </row>
       </tbody>
--- 16477,16483 ----
          <literal><function>pg_xlog_replay_resume()</function></literal>
          </entry>
         <entry><type>void</type></entry>
!        <entry>Restarts recovery if it was paused (restricted to superusers).
         </entry>
        </row>
       </tbody>
*************** postgres=# SELECT * FROM pg_xlogfile_nam
*** 16585,16591 ****
      for controlling and interacting with replication features.
      See <xref linkend="streaming-replication">
      and <xref linkend="streaming-replication-slots"> for information about the
!     underlying features.
     </para>
  
     <para>
--- 16585,16591 ----
      for controlling and interacting with replication features.
      See <xref linkend="streaming-replication">
      and <xref linkend="streaming-replication-slots"> for information about the
!     underlying features.  Use of these functions is restricted to superusers.
     </para>
  
     <para>
diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c
new file mode 100644
index f186468..133143d
*** a/src/backend/access/transam/xlogfuncs.c
--- b/src/backend/access/transam/xlogfuncs.c
*************** pg_xlog_replay_resume(PG_FUNCTION_ARGS)
*** 382,392 ****
  Datum
  pg_is_xlog_replay_paused(PG_FUNCTION_ARGS)
  {
- 	if (!superuser())
- 		ereport(ERROR,
- 				(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
- 				 (errmsg("must be superuser to control recovery"))));
- 
  	if (!RecoveryInProgress())
  		ereport(ERROR,
  				(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
--- 382,387 ----
