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

Commit b245138

Browse files
committed
Message wording improvements
1 parent 32b5073 commit b245138

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

doc/src/sgml/logical-replication.sgml

+1-1
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

+3-3
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ get_publications_str(List *publications, StringInfo dest, bool quote_literal)
437437
}
438438

439439
/*
440-
* Check the specified publication(s) is(are) present in the publisher.
440+
* Check that the specified publications are present on the publisher.
441441
*/
442442
static void
443443
check_publications(WalReceiverConn *wrconn, List *publications)
@@ -495,8 +495,8 @@ check_publications(WalReceiverConn *wrconn, List *publications)
495495
get_publications_str(publicationsCopy, pubnames, false);
496496
ereport(WARNING,
497497
errcode(ERRCODE_UNDEFINED_OBJECT),
498-
errmsg_plural("publication %s does not exist in the publisher",
499-
"publications %s do not exist in the publisher",
498+
errmsg_plural("publication %s does not exist on the publisher",
499+
"publications %s do not exist on the publisher",
500500
list_length(publicationsCopy),
501501
pubnames->data));
502502
}

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

+1-1
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

+3-3
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

+1-1
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'",

src/test/subscription/t/030_origin.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"ALTER PUBLICATION tap_pub_B ADD TABLE tab_new");
186186

187187
# Alter subscription ... refresh publication should log a warning when a new
188-
# table in the publisher is subscribing data from a different publication
188+
# table on the publisher is subscribing data from a different publication
189189
($result, $stdout, $stderr) = $node_A->psql(
190190
'postgres', "
191191
ALTER SUBSCRIPTION $subname_AB2 REFRESH PUBLICATION");

0 commit comments

Comments
 (0)