Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4b4663f

Browse files
committed
Message style fixes
1 parent 5265e91 commit 4b4663f

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/backend/replication/logical/worker.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -3878,7 +3878,7 @@ maybe_start_skipping_changes(XLogRecPtr finish_lsn)
38783878
skip_xact_finish_lsn = finish_lsn;
38793879

38803880
ereport(LOG,
3881-
errmsg("start skipping logical replication transaction finished at %X/%X",
3881+
errmsg("logical replication starts skipping transaction at LSN %X/%X",
38823882
LSN_FORMAT_ARGS(skip_xact_finish_lsn)));
38833883
}
38843884

@@ -3892,7 +3892,7 @@ stop_skipping_changes(void)
38923892
return;
38933893

38943894
ereport(LOG,
3895-
(errmsg("done skipping logical replication transaction finished at %X/%X",
3895+
(errmsg("logical replication completed skipping transaction at LSN %X/%X",
38963896
LSN_FORMAT_ARGS(skip_xact_finish_lsn))));
38973897

38983898
/* Stop skipping changes */
@@ -3975,7 +3975,7 @@ clear_subscription_skip_lsn(XLogRecPtr finish_lsn)
39753975
if (myskiplsn != finish_lsn)
39763976
ereport(WARNING,
39773977
errmsg("skip-LSN of logical replication subscription \"%s\" cleared", MySubscription->name),
3978-
errdetail("Remote transaction's finish WAL location (LSN) %X/%X did not match skip-LSN %X/%X",
3978+
errdetail("Remote transaction's finish WAL location (LSN) %X/%X did not match skip-LSN %X/%X.",
39793979
LSN_FORMAT_ARGS(finish_lsn),
39803980
LSN_FORMAT_ARGS(myskiplsn)));
39813981
}

src/backend/utils/init/postinit.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,10 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect
454454

455455
actual_versionstr = get_collation_actual_version(dbform->datlocprovider, dbform->datlocprovider == COLLPROVIDER_ICU ? iculocale : collate);
456456
if (!actual_versionstr)
457-
ereport(WARNING,
458-
(errmsg("database \"%s\" has no actual collation version, but a version was recorded",
459-
name)));
457+
/* should not happen */
458+
elog(WARNING,
459+
"database \"%s\" has no actual collation version, but a version was recorded",
460+
name);
460461
else if (strcmp(actual_versionstr, collversionstr) != 0)
461462
ereport(WARNING,
462463
(errmsg("database \"%s\" has a collation version mismatch",

src/backend/utils/misc/guc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2837,7 +2837,7 @@ static struct config_int ConfigureNamesInt[] =
28372837
{
28382838
{"wal_decode_buffer_size", PGC_POSTMASTER, WAL_RECOVERY,
28392839
gettext_noop("Maximum buffer size for reading ahead in the WAL during recovery."),
2840-
gettext_noop("This controls the maximum distance we can read ahead in the WAL to prefetch referenced blocks."),
2840+
gettext_noop("This controls the maximum distance we can read ahead in the WAL to prefetch data blocks referenced therein."),
28412841
GUC_UNIT_BYTE
28422842
},
28432843
&wal_decode_buffer_size,

src/test/subscription/t/029_on_error.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sub test_skip_lsn
4848
# Check the log to ensure that the transaction is skipped, and advance the
4949
# offset of the log file for the next test.
5050
$offset = $node_subscriber->wait_for_log(
51-
qr/LOG: ( [A-Z0-9]+:)? done skipping logical replication transaction finished at $lsn/,
51+
qr/LOG: ( [A-Z0-9]+:)? logical replication completed skipping transaction at LSN $lsn/,
5252
$offset);
5353

5454
# Insert non-conflict data

0 commit comments

Comments
 (0)