Skip to content

Commit c946425

Browse files
committed
Message wording improvements
1 parent 8135d0b commit c946425

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

doc/src/sgml/logical-replication.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ test_sub=# SELECT * FROM child ORDER BY a;
10961096
Each publication can optionally specify which columns of each table are
10971097
replicated to subscribers. The table on the subscriber side must have at
10981098
least all the columns that are published. If no column list is specified,
1099-
then all columns in the publisher are replicated.
1099+
then all columns on the publisher are replicated.
11001100
See <xref linkend="sql-createpublication"/> for details on the syntax.
11011101
</para>
11021102

src/backend/commands/subscriptioncmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ get_publications_str(List *publications, StringInfo dest, bool quote_literal)
406406
}
407407

408408
/*
409-
* Check the specified publication(s) is(are) present in the publisher.
409+
* Check that the specified publications are present on the publisher.
410410
*/
411411
static void
412412
check_publications(WalReceiverConn *wrconn, List *publications)
@@ -464,8 +464,8 @@ check_publications(WalReceiverConn *wrconn, List *publications)
464464
get_publications_str(publicationsCopy, pubnames, false);
465465
ereport(WARNING,
466466
errcode(ERRCODE_UNDEFINED_OBJECT),
467-
errmsg_plural("publication %s does not exist in the publisher",
468-
"publications %s do not exist in the publisher",
467+
errmsg_plural("publication %s does not exist on the publisher",
468+
"publications %s do not exist on the publisher",
469469
list_length(publicationsCopy),
470470
pubnames->data));
471471
}

src/test/subscription/t/001_rep_changes.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
#
178178
# When a publisher drops a table from publication, it should also stop sending
179179
# its changes to subscribers. We look at the subscriber whether it receives
180-
# the row that is inserted to the table in the publisher after it is dropped
180+
# the row that is inserted to the table on the publisher after it is dropped
181181
# from the publication.
182182
$result = $node_subscriber->safe_psql('postgres',
183183
"SELECT count(*), min(a), max(a) FROM tab_ins");

src/test/subscription/t/007_ddl.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"CREATE SUBSCRIPTION mysub1 CONNECTION '$publisher_connstr' PUBLICATION mypub, non_existent_pub"
4747
);
4848
ok( $stderr =~
49-
m/WARNING: publication "non_existent_pub" does not exist in the publisher/,
49+
m/WARNING: publication "non_existent_pub" does not exist on the publisher/,
5050
"Create subscription throws warning for non-existent publication");
5151

5252
# Wait for initial table sync to finish.
@@ -57,15 +57,15 @@
5757
"ALTER SUBSCRIPTION mysub1 ADD PUBLICATION non_existent_pub1, non_existent_pub2"
5858
);
5959
ok( $stderr =~
60-
m/WARNING: publications "non_existent_pub1", "non_existent_pub2" do not exist in the publisher/,
60+
m/WARNING: publications "non_existent_pub1", "non_existent_pub2" do not exist on the publisher/,
6161
"Alter subscription add publication throws warning for non-existent publications"
6262
);
6363

6464
# Specifying non-existent publication along with set publication.
6565
($ret, $stdout, $stderr) = $node_subscriber->psql('postgres',
6666
"ALTER SUBSCRIPTION mysub1 SET PUBLICATION non_existent_pub");
6767
ok( $stderr =~
68-
m/WARNING: publication "non_existent_pub" does not exist in the publisher/,
68+
m/WARNING: publication "non_existent_pub" does not exist on the publisher/,
6969
"Alter subscription set publication throws warning for non-existent publication"
7070
);
7171

src/test/subscription/t/020_messages.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
# Ensure a transactional logical decoding message shows up on the slot
4242
$node_subscriber->safe_psql('postgres', "ALTER SUBSCRIPTION tap_sub DISABLE");
4343

44-
# wait for the replication slot to become inactive in the publisher
44+
# wait for the replication slot to become inactive on the publisher
4545
$node_publisher->poll_query_until(
4646
'postgres',
4747
"SELECT COUNT(*) FROM pg_catalog.pg_replication_slots WHERE slot_name = 'tap_sub' AND active='f'",

0 commit comments

Comments
 (0)