mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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
This commit is contained in:
parent
8c17144c75
commit
600250d0ed
@ -502,7 +502,8 @@ check_control_data(ControlData *oldctrl,
|
|||||||
{
|
{
|
||||||
if (oldctrl->align == 0 || oldctrl->align != newctrl->align)
|
if (oldctrl->align == 0 || oldctrl->align != newctrl->align)
|
||||||
pg_log(PG_FATAL,
|
pg_log(PG_FATAL,
|
||||||
"old and new pg_controldata alignments are invalid or do not match\n");
|
"old and new pg_controldata alignments are invalid or do not match\n"
|
||||||
|
"Likely one cluster is a 32-bit install, the other 64-bit\n");
|
||||||
|
|
||||||
if (oldctrl->blocksz == 0 || oldctrl->blocksz != newctrl->blocksz)
|
if (oldctrl->blocksz == 0 || oldctrl->blocksz != newctrl->blocksz)
|
||||||
pg_log(PG_FATAL,
|
pg_log(PG_FATAL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user