Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf50200c

Browse files
committed
Silence "missing contrecord" error.
Commitdd38ff2 added a new error message "missing contrecord" whenwe fail to reassemble a record. Unfortunately that caused noisymessages to be logged by pg_waldump at end of segment, and by walsenderwhen 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 shouldnot be silenced while performing crash recovery, but fixing that withoutintroducing 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
1 parent7ae4e78 commitf50200c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

‎src/backend/access/transam/xlogreader.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -912,15 +912,11 @@ XLogDecodeNextRecord(XLogReaderState *state, bool nonblocking)
912912
state->missingContrecPtr=targetPagePtr;
913913

914914
/*
915-
* If we got here without reporting an error, report one now so that
916-
* XLogPrefetcherReadRecord() doesn't bring us back a second time and
917-
* clobber the above state. Otherwise, the existing error takes
918-
* precedence.
915+
* If we got here without reporting an error, make sure an error is
916+
* queued so that XLogPrefetcherReadRecord() doesn't bring us back a
917+
* second time and clobber the above state.
919918
*/
920-
if (!state->errormsg_buf[0])
921-
report_invalid_record(state,
922-
"missing contrecord at %X/%X",
923-
LSN_FORMAT_ARGS(RecPtr));
919+
state->errormsg_deferred= true;
924920
}
925921

926922
if (decoded&&decoded->oversized)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp