fix standby mode validation
This commit is contained in:
@@ -760,7 +760,7 @@ func ValidateConnectTargetSessionAttrsStandby(ctx context.Context, pgConn *PgCon
|
|||||||
return result.Err
|
return result.Err
|
||||||
}
|
}
|
||||||
|
|
||||||
if string(result.Rows[0][0]) != "f" {
|
if string(result.Rows[0][0]) != "t" {
|
||||||
return errors.New("server is not in hot standby mode")
|
return errors.New("server is not in hot standby mode")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user