Skip to content

Commit d438515

Browse files
author
Amit Kapila
committed
Cosmetic fixes for pg_createsubscriber's -all option.
Author: Peter Smith <smithpb2250@gmail.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Discussion: https://postgr.es/m/CAHut+PsmSCQ-ENSDQ0YOUcsgzT=GG-E9jyXBvxd51A_dMXH5XA@mail.gmail.com
1 parent d15acc9 commit d438515

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

doc/src/sgml/ref/pg_createsubscriber.sgml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ PostgreSQL documentation
9494
<para>
9595
Create one subscription per database on the target server. Exceptions
9696
are template databases and databases that don't allow connections.
97-
If the database name is not specified in publisher-server, the postgres
98-
database will be used, or if that does not exist, template1 will be used.
97+
To discover the list of all databases, connect to the source server
98+
using the database name specified in the <option>--publisher-server</option>
99+
connection string, or if not specified, the <literal>postgres</literal>
100+
database will be used, or if that does not exist, <literal>template1</literal>
101+
will be used.
99102
Automatically generated names for subscriptions, publications, and
100103
replication slots are used when this option is specified.
101104
This option cannot be used along with <option>--database</option>,

src/bin/pg_basebackup/pg_createsubscriber.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,8 +1963,8 @@ enable_subscription(PGconn *conn, const struct LogicalRepInfo *dbinfo)
19631963
}
19641964

19651965
/*
1966-
* Fetch a list of all not-template databases from the source server and form
1967-
* a list such that they appear as if the user has specified multiple
1966+
* Fetch a list of all connectable non-template databases from the source server
1967+
* and form a list such that they appear as if the user has specified multiple
19681968
* --database options, one for each source database.
19691969
*/
19701970
static void

0 commit comments

Comments
 (0)