]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Silence "missing contrecord" error.
authorThomas Munro <tmunro@postgresql.org>
Sun, 2 Jul 2023 22:53:44 +0000 (10:53 +1200)
committerThomas Munro <tmunro@postgresql.org>
Sun, 2 Jul 2023 23:21:56 +0000 (11:21 +1200)
commit76d5966b3b798cc58025c77164fa944f2b6dd667
tree10faa821235f31d5fbee1a37196df55feccb1399
parent9cf85093b55979e7d8ccfd9d0da21ce277a2f321
Silence "missing contrecord" error.

Commit dd38ff28ad added a new error message "missing contrecord" when
we fail to reassemble a record.  Unfortunately that caused noisy
messages to be logged by pg_waldump at end of segment, and by walsender
when asked to shut down on a segment boundary.

Remove the new error message, so that this condition signals end-of-
WAL without a message.  It's arguably a reportable condition that should
not be silenced while performing crash recovery, but fixing that without
introducing noise in the other cases will require more research.

Back-patch to 15.

Reported-by: Tomas Vondra <tomas.vondra@enterprisedb.com>
Discussion: https://postgr.es/m/6a1df56e-4656-b3ce-4b7a-a9cb41df8189%40enterprisedb.com
src/backend/access/transam/xlogreader.c