postgres.git / summary / log / commit / refs
commit bd6aca8a7713ecc0bed94dfb081bf24eda0c1f55
Author: Bruce Momjian <bruce@momjian.us>
Date: Thu Jan 24 13:35:57 2013 +0000
pg_upgrade: report failed cluster name
When pg_upgrade can't find required pg_controldata information, report
_which_ cluster is failing, with this message:
The %s cluster lacks some required control information:
contrib/pg_upgrade/controldata.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/contrib/pg_upgrade/controldata.c b/contrib/pg_upgrade/controldata.c
index 7c80c873153..f4252af4edc 100644
--- a/contrib/pg_upgrade/controldata.c
+++ b/contrib/pg_upgrade/controldata.c
@@ -477,7 +477,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
!got_date_is_int || !got_float8_pass_by_value)
{
pg_log(PG_REPORT,
- "Some required control information is missing; cannot find:\n");
+ "The %s cluster lacks some required control information:\n",
+ CLUSTER_NAME(cluster));
if (!got_xid)
pg_log(PG_REPORT, " checkpoint next XID\n");
[parent: 168d31570328]