pgpool2.git / summary / log / commit / refs
commit d3a6a7b57b1794c0ebb32dc0e88bc5ae50790e71
Author: Yoshiyuki Asaba <y-asaba at pgfoundry.org>
Date: Mon Feb 25 11:22:28 2008 +0000
Improve error message.
recovery.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/recovery.c b/recovery.c
index ddb6c86c1..a516ede7d 100644
--- a/recovery.c
+++ b/recovery.c
@@ -204,7 +204,11 @@ static int exec_recovery(PGconn *conn, BackendInfo *backend, char stage)
result = PQexec(conn, recovery_command);
r = (PQresultStatus(result) != PGRES_TUPLES_OK);
if (r != 0)
- pool_error("exec_recovery: pgpool_recovery failed: %s", PQresultErrorMessage(result));
+ {
+ pool_error("exec_recovery: %s command failed at %s",
+ script,
+ (stage == FIRST_STAGE) ? "1st stage" : "2nd stage");
+ }
PQclear(result);
pool_debug("exec_recovery: finish recovery");
return r;
[parent: 6c0f74be2a15]