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

Commit3b24cf7

Browse files
committed
pg_waldump: Fix --bkp-details to not issue spurious newlines for FPWs.
The additional newline seems to have accidentally been introduced in2c03216, in 9.5. The newline is only issued when an FPW ispresent for the block reference.While there could be an argument that removing the newlines in theback branches could cause a problem for somebody parsing thepg_waldump output, the likelihood of that seems small enough. It seemsat least equally likely that the randomness of when newlines areissued causes problems.Author: Andres FreundDiscussion:https://postgr.es/m/20191029233341.4gnyau7e5v2lh5sc@alap3.anarazel.deBackpatch: 9.5, like2c03216.
1 parentaf67aee commit3b24cf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_waldump/pg_waldump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ XLogDumpDisplayRecord(XLogDumpConfig *config, XLogReaderState *record)
609609
BKPIMAGE_IS_COMPRESSED)
610610
{
611611
printf(" (FPW%s); hole: offset: %u, length: %u, "
612-
"compression saved: %u\n",
612+
"compression saved: %u",
613613
XLogRecBlockImageApply(record,block_id) ?
614614
"" :" for WAL verification",
615615
record->blocks[block_id].hole_offset,
@@ -620,7 +620,7 @@ XLogDumpDisplayRecord(XLogDumpConfig *config, XLogReaderState *record)
620620
}
621621
else
622622
{
623-
printf(" (FPW%s); hole: offset: %u, length: %u\n",
623+
printf(" (FPW%s); hole: offset: %u, length: %u",
624624
XLogRecBlockImageApply(record,block_id) ?
625625
"" :" for WAL verification",
626626
record->blocks[block_id].hole_offset,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp