From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dennis Jacobfeuerborn <dennisml@conversis.de>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: "invalid record length" after restoring pg_basebackup
Date: Fri, 13 Nov 2020 10:02:57 -0500
Message-ID: <285451.1605279777@sss.pgh.pa.us> (raw)
In-Reply-To: <c729cdd1-73c3-73f8-9f40-dd0fc84efb29@conversis.de>
References: <c729cdd1-73c3-73f8-9f40-dd0fc84efb29@conversis.de>
Dennis Jacobfeuerborn <dennisml@conversis.de> writes:
> All of this works fine and the logs report that the db reaches a
> consistent recovery state but as last entry it reports an "invalid
> record length":
This looks quite normal to me. If you'd pulled the power plug on the
primary system at the time you made this backup, you would likely see
the same message at the end of its crash recovery. Some sort of
corrupt-WAL-entry report is expected at the end of WAL replay anytime
you didn't have a clean shutdown.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, dennisml@conversis.de
Subject: Re: "invalid record length" after restoring pg_basebackup
In-Reply-To: <285451.1605279777@sss.pgh.pa.us>
References: <c729cdd1-73c3-73f8-9f40-dd0fc84efb29@conversis.de> <285451.1605279777@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox