mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
"standby clone": fix a couple of regressions
This commit is contained in:
@@ -1441,6 +1441,12 @@ get_superuser_connection(PGconn **conn, PGconn **superuser_conn, PGconn **privil
|
||||
t_connection_user userinfo;
|
||||
bool is_superuser;
|
||||
|
||||
/* this should never happen */
|
||||
if (PQstatus(conn) != CONNECTION_OK)
|
||||
{
|
||||
log_error(_("no database connection available"));
|
||||
exit(ERR_INTERNAL);
|
||||
}
|
||||
is_superuser = is_superuser_connection(*conn, &userinfo);
|
||||
|
||||
if (is_superuser == true)
|
||||
|
||||
Reference in New Issue
Block a user