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

Commit93660d1

Browse files
committed
Use errmsg_internal for debug messages
Some newer code was applying this inconsistently.
1 parenta67a496 commit93660d1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎src/backend/postmaster/walsummarizer.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,8 @@ WalSummarizerMain(char *startup_data, size_t startup_data_len)
382382

383383
switch_lsn=tliSwitchPoint(current_tli,tles,&switch_tli);
384384
ereport(DEBUG1,
385-
errmsg("switch point from TLI %u to TLI %u is at %X/%X",
386-
current_tli,switch_tli,LSN_FORMAT_ARGS(switch_lsn)));
385+
errmsg_internal("switch point from TLI %u to TLI %u is at %X/%X",
386+
current_tli,switch_tli,LSN_FORMAT_ARGS(switch_lsn)));
387387
}
388388

389389
/*
@@ -1217,10 +1217,10 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
12171217

12181218
/* Tell the user what we did. */
12191219
ereport(DEBUG1,
1220-
errmsg("summarized WAL on TLI %u from %X/%X to %X/%X",
1221-
tli,
1222-
LSN_FORMAT_ARGS(summary_start_lsn),
1223-
LSN_FORMAT_ARGS(summary_end_lsn)));
1220+
errmsg_internal("summarized WAL on TLI %u from %X/%X to %X/%X",
1221+
tli,
1222+
LSN_FORMAT_ARGS(summary_start_lsn),
1223+
LSN_FORMAT_ARGS(summary_end_lsn)));
12241224

12251225
/* Durably rename the new summary into place. */
12261226
durable_rename(temp_path,final_path,ERROR);
@@ -1229,10 +1229,10 @@ SummarizeWAL(TimeLineID tli, XLogRecPtr start_lsn, bool exact,
12291229
/* If we skipped a non-zero amount of WAL, log a debug message. */
12301230
if (summary_end_lsn>summary_start_lsn&&fast_forward)
12311231
ereport(DEBUG1,
1232-
errmsg("skipped summarizing WAL on TLI %u from %X/%X to %X/%X",
1233-
tli,
1234-
LSN_FORMAT_ARGS(summary_start_lsn),
1235-
LSN_FORMAT_ARGS(summary_end_lsn)));
1232+
errmsg_internal("skipped summarizing WAL on TLI %u from %X/%X to %X/%X",
1233+
tli,
1234+
LSN_FORMAT_ARGS(summary_start_lsn),
1235+
LSN_FORMAT_ARGS(summary_end_lsn)));
12361236

12371237
returnsummary_end_lsn;
12381238
}
@@ -1575,8 +1575,8 @@ summarizer_read_local_xlog_page(XLogReaderState *state,
15751575

15761576
/* Debugging output. */
15771577
ereport(DEBUG1,
1578-
errmsg("timeline %u became historic, can read up to %X/%X",
1579-
private_data->tli,LSN_FORMAT_ARGS(private_data->read_upto)));
1578+
errmsg_internal("timeline %u became historic, can read up to %X/%X",
1579+
private_data->tli,LSN_FORMAT_ARGS(private_data->read_upto)));
15801580
}
15811581

15821582
/* Go around and try again. */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp