Skip to content

Commit 834d64b

Browse files
committed
Fix wrong message for finished segment, add finished streaming message
1 parent 85adfcb commit 834d64b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backup.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2560,7 +2560,7 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
25602560

25612561
/* we assume that we get called once at the end of each segment */
25622562
if (segment_finished)
2563-
elog(LOG, _("finished streaming WAL at %X/%X (timeline %u)"),
2563+
elog(VERBOSE, _("finished segment at %X/%X (timeline %u)"),
25642564
(uint32) (xlogpos >> 32), (uint32) xlogpos, timeline);
25652565

25662566
/*
@@ -2578,7 +2578,11 @@ stop_streaming(XLogRecPtr xlogpos, uint32 timeline, bool segment_finished)
25782578
if (!XLogRecPtrIsInvalid(stop_backup_lsn))
25792579
{
25802580
if (xlogpos > stop_backup_lsn)
2581+
{
2582+
elog(LOG, _("finished streaming WAL at %X/%X (timeline %u)"),
2583+
(uint32) (xlogpos >> 32), (uint32) xlogpos, timeline);
25812584
return true;
2585+
}
25822586

25832587
/* pg_stop_backup() was executed, wait for the completion of stream */
25842588
if (stream_stop_timeout == 0)

0 commit comments

Comments
 (0)