Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match - Mailing list pgsql-bugs

From Jeff Janes
Subject Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match
Date
Msg-id CAMkU=1zRirCC-kZTZb0hBq+jqy7vjk8+ehbrZpjr5LATKFChKQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match  (Michael Paquier <michael@paquier.xyz>)
Responses Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match
Re: BUG #16497: old and new pg_controldata WAL segment sizes are invalid or do not match
List pgsql-bugs
On Thu, Jun 18, 2020 at 4:05 AM Michael Paquier <michael@paquier.xyz> wrote:
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.

Since wal-segsize is changeable with pg_resetwal since v11, and pg_upgrade is already calling pg_resetwal, shouldn't pg_upgrade ideally just deal with this situation automatically by allowing the upgrade to also change this value, rather than forcing the user to make them match manually?
 
Cheers,

Jeff

pgsql-bugs by date:

Previous
From: Ram Pratap Maurya
Date:
Subject: RE: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #16497: old and new pg_controldata WAL segment sizes areinvalid or do not match