From 01363beae52700c7425cb2d2452177133dad3e93 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 29 Aug 2014 09:05:35 -0400 Subject: pg_is_xlog_replay_paused(): remove super-user-only restriction Also update docs to mention which function are super-user-only. Report by sys-milan@statpro.com Backpatch through 9.4 --- src/backend/access/transam/xlogfuncs.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/backend/access/transam/xlogfuncs.c') diff --git a/src/backend/access/transam/xlogfuncs.c b/src/backend/access/transam/xlogfuncs.c index f186468dd2c..133143db929 100644 --- a/src/backend/access/transam/xlogfuncs.c +++ b/src/backend/access/transam/xlogfuncs.c @@ -382,11 +382,6 @@ pg_xlog_replay_resume(PG_FUNCTION_ARGS) 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), -- cgit v1.2.3