Skip to content

Commit 600250d

Browse files
committed
Improve pg_upgrade error report
If the cluster alignments don't match, output this suggestion: Likely one cluster is a 32-bit install, the other 64-bit
1 parent 8c17144 commit 600250d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pg_upgrade/controldata.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,8 @@ check_control_data(ControlData *oldctrl,
502502
{
503503
if (oldctrl->align == 0 || oldctrl->align != newctrl->align)
504504
pg_log(PG_FATAL,
505-
"old and new pg_controldata alignments are invalid or do not match\n");
505+
"old and new pg_controldata alignments are invalid or do not match\n"
506+
"Likely one cluster is a 32-bit install, the other 64-bit\n");
506507

507508
if (oldctrl->blocksz == 0 || oldctrl->blocksz != newctrl->blocksz)
508509
pg_log(PG_FATAL,

0 commit comments

Comments
 (0)