Commit bd6aca8a authored by Bruce Momjian's avatar Bruce Momjian

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:
parent 168d3157
...@@ -477,7 +477,8 @@ get_control_data(ClusterInfo *cluster, bool live_check) ...@@ -477,7 +477,8 @@ get_control_data(ClusterInfo *cluster, bool live_check)
!got_date_is_int || !got_float8_pass_by_value) !got_date_is_int || !got_float8_pass_by_value)
{ {
pg_log(PG_REPORT, 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) if (!got_xid)
pg_log(PG_REPORT, " checkpoint next XID\n"); pg_log(PG_REPORT, " checkpoint next XID\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment