diff options
author | Bruce Momjian <bruce@momjian.us> | 2014-08-29 09:05:35 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2014-08-29 09:05:40 -0400 |
commit | f08b5e7577e70f9aee80d04e94864bb5053f7555 (patch) | |
tree | b9af9553ed80ae7d3a5a4c1d6e5944338c61c68a /src/backend/access/transam/xlogfuncs.c | |
parent | 08bff295a7e7ac66a35f42e92e97782b9af64cdc (diff) |
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
Diffstat (limited to 'src/backend/access/transam/xlogfuncs.c')
-rw-r--r-- | src/backend/access/transam/xlogfuncs.c | 5 |
1 files changed, 0 insertions, 5 deletions
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), |