RE: BUG #16497: old and new pg_controldata WAL segment sizes are invalid or do not match

From: Ram Pratap Maurya <ram(dot)maurya(at)lavainternational(dot)in>
To: Michael Paquier <michael(at)paquier(dot)xyz>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #16497: old and new pg_controldata WAL segment sizes are invalid or do not match
Date: 2020-06-18 13:32:37
Message-ID: PS2PR06MB250118FE05237919018A0E92F09B0@PS2PR06MB2501.apcprd06.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dear Michael,

Currently I hav installed postgres12 version , need to uninstall and reinstall again.
Or any command that we change current installation wal segment size.

Below location we have installed 12 version.

/var/lib/pgsql/12/data

Regards,
Ram Pratap.

-----Original Message-----
From: Michael Paquier [mailto:michael(at)paquier(dot)xyz]
Sent: 18 June 2020 13:35
To: Ram Pratap Maurya; pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16497: old and new pg_controldata WAL segment sizes are invalid or do not match

On Wed, Jun 17, 2020 at 09:00:23PM +0000, PG Bug reporting form wrote:
> I am facing error during upgrade from postgresql -11 to 12.
> can you please suggest what is solution.

As the error message is telling, you need to make the WAL segment sizes of the old and new clusters match. This can be defined at server initialization time using initdb with a default of 16MB, so that's not a bug from us, but something you need to take care of within your upgrade process.
--
Michael

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Jeff Janes 2020-06-18 14:18:21 Re: BUG #16497: old and new pg_controldata WAL segment sizes are invalid or do not match
Previous Message Etsuro Fujita 2020-06-18 13:05:12 Re: BUG #16500: SQL Abend. select multi_key_columns_range_partition_table