|
|
@ -173,7 +173,7 @@ pg_terminate_backend(PG_FUNCTION_ARGS) |
|
|
|
if (r == SIGNAL_BACKEND_NOPERMISSION) |
|
|
|
if (r == SIGNAL_BACKEND_NOPERMISSION) |
|
|
|
ereport(ERROR, |
|
|
|
ereport(ERROR, |
|
|
|
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), |
|
|
|
(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE), |
|
|
|
(errmsg("must be superuser or have the same role to terminate backends running in other server processes")))); |
|
|
|
(errmsg("must be superuser or have the same role to terminate other server processes")))); |
|
|
|
|
|
|
|
|
|
|
|
PG_RETURN_BOOL(r == SIGNAL_BACKEND_SUCCESS); |
|
|
|
PG_RETURN_BOOL(r == SIGNAL_BACKEND_SUCCESS); |
|
|
|
} |
|
|
|
} |
|
|
|