diff options
author | Bruce Momjian <bruce@momjian.us> | 2013-01-18 09:26:18 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2013-01-18 09:26:55 -0500 |
commit | 600250d0ed8848391ceb8fb382c299d085856dbc (patch) | |
tree | 87186185f7b672856e52a361649c61addc25a0d8 | |
parent | 8c17144c7555dbe3ed255c3556ca4f91f81c024f (diff) | |
download | postgresql-600250d0ed8848391ceb8fb382c299d085856dbc.tar.gz postgresql-600250d0ed8848391ceb8fb382c299d085856dbc.zip |
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
-rw-r--r-- | contrib/pg_upgrade/controldata.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/controldata.c b/contrib/pg_upgrade/controldata.c index 58572d00433..9218f65abc3 100644 --- a/contrib/pg_upgrade/controldata.c +++ b/contrib/pg_upgrade/controldata.c @@ -502,7 +502,8 @@ check_control_data(ControlData *oldctrl, { if (oldctrl->align == 0 || oldctrl->align != newctrl->align) 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) pg_log(PG_FATAL, |