mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
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
This commit is contained in:
@ -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),
|
||||
|
Reference in New Issue
Block a user