Skip to content

Commit 0b5e824

Browse files
committed
Message improvement
The previous wording contained a superfluous comma. Adjust phrasing for grammatical correctness and clarity.
1 parent 4c0239c commit 0b5e824

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contrib/test_decoding/expected/slot.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ SELECT pg_replication_slot_advance('regression_slot3', '0/0'); -- invalid LSN
144144
ERROR: invalid target WAL LSN
145145
SELECT pg_replication_slot_advance('regression_slot3', '0/1'); -- error
146146
ERROR: replication slot "regression_slot3" cannot be advanced
147-
DETAIL: This slot has never previously reserved WAL, or has been invalidated.
147+
DETAIL: This slot has never previously reserved WAL, or it has been invalidated.
148148
SELECT pg_drop_replication_slot('regression_slot3');
149149
pg_drop_replication_slot
150150
--------------------------

src/backend/replication/logical/logicalfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin
250250
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
251251
errmsg("can no longer get changes from replication slot \"%s\"",
252252
NameStr(*name)),
253-
errdetail("This slot has never previously reserved WAL, or has been invalidated.")));
253+
errdetail("This slot has never previously reserved WAL, or it has been invalidated.")));
254254

255255
MemoryContextSwitchTo(oldcontext);
256256

src/backend/replication/slotfuncs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
647647
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
648648
errmsg("replication slot \"%s\" cannot be advanced",
649649
NameStr(*slotname)),
650-
errdetail("This slot has never previously reserved WAL, or has been invalidated.")));
650+
errdetail("This slot has never previously reserved WAL, or it has been invalidated.")));
651651

652652
/*
653653
* Check if the slot is not moving backwards. Physical slots rely simply

0 commit comments

Comments
 (0)