aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2021-04-07 07:37:30 +0200
committerPeter Eisentraut <peter@eisentraut.org>2021-04-07 07:42:44 +0200
commit0b5e8245283eef67e88fb5380836cdc2c743d848 (patch)
tree56c3420e48e12a1bab727c08e105cce1986c2c55
parent4c0239cb7a7775e3183cb575e62703d71bf3302d (diff)
downloadpostgresql-0b5e8245283eef67e88fb5380836cdc2c743d848.tar.gz
postgresql-0b5e8245283eef67e88fb5380836cdc2c743d848.zip
Message improvement
The previous wording contained a superfluous comma. Adjust phrasing for grammatical correctness and clarity.
-rw-r--r--contrib/test_decoding/expected/slot.out2
-rw-r--r--src/backend/replication/logical/logicalfuncs.c2
-rw-r--r--src/backend/replication/slotfuncs.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/contrib/test_decoding/expected/slot.out b/contrib/test_decoding/expected/slot.out
index ea72bf9f157..75b4b5cc625 100644
--- a/contrib/test_decoding/expected/slot.out
+++ b/contrib/test_decoding/expected/slot.out
@@ -144,7 +144,7 @@ SELECT pg_replication_slot_advance('regression_slot3', '0/0'); -- invalid LSN
ERROR: invalid target WAL LSN
SELECT pg_replication_slot_advance('regression_slot3', '0/1'); -- error
ERROR: replication slot "regression_slot3" cannot be advanced
-DETAIL: This slot has never previously reserved WAL, or has been invalidated.
+DETAIL: This slot has never previously reserved WAL, or it has been invalidated.
SELECT pg_drop_replication_slot('regression_slot3');
pg_drop_replication_slot
--------------------------
diff --git a/src/backend/replication/logical/logicalfuncs.c b/src/backend/replication/logical/logicalfuncs.c
index f7e055874e3..01d354829b9 100644
--- a/src/backend/replication/logical/logicalfuncs.c
+++ b/src/backend/replication/logical/logicalfuncs.c
@@ -250,7 +250,7 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("can no longer get changes from replication slot \"%s\"",
NameStr(*name)),
- errdetail("This slot has never previously reserved WAL, or has been invalidated.")));
+ errdetail("This slot has never previously reserved WAL, or it has been invalidated.")));
MemoryContextSwitchTo(oldcontext);
diff --git a/src/backend/replication/slotfuncs.c b/src/backend/replication/slotfuncs.c
index 9817b441136..d9d36879ed7 100644
--- a/src/backend/replication/slotfuncs.c
+++ b/src/backend/replication/slotfuncs.c
@@ -647,7 +647,7 @@ pg_replication_slot_advance(PG_FUNCTION_ARGS)
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
errmsg("replication slot \"%s\" cannot be advanced",
NameStr(*slotname)),
- errdetail("This slot has never previously reserved WAL, or has been invalidated.")));
+ errdetail("This slot has never previously reserved WAL, or it has been invalidated.")));
/*
* Check if the slot is not moving backwards. Physical slots rely simply