From e35bbea7ddd89c7f51988fcf03c87150938ea2e3 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 7 Feb 2017 21:26:50 -0500 Subject: [PATCH] doc: Some improvements in CREATE SUBSCRIPTION ref page Add link to description of libpq connection strings. Add link to explanation of replication access control. This currently points to the description of streaming replication access control, which is currently the same as for logical replication, but that might be refined later. Also remove plain-text passwords from the examples, to not encourage that dubious practice. based on suggestions from Simon Riggs --- doc/src/sgml/ref/create_subscription.sgml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 40d08b3440..59e5ad00c8 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -76,7 +76,8 @@ CREATE SUBSCRIPTION subscription_nameCONNECTION 'conninfo' - The connection string to the publisher. + The connection string to the publisher. For details + see . @@ -126,6 +127,16 @@ CREATE SUBSCRIPTION subscription_name + + Notes + + + See for details on + how to configure access control between the subscription and the + publication instance. + + + Examples @@ -136,7 +147,7 @@ CREATE SUBSCRIPTION subscription_name CREATE SUBSCRIPTION mysub - CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb password=foopass' + CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb' PUBLICATION mypublication, insert_only; @@ -147,7 +158,7 @@ CREATE SUBSCRIPTION mysub until enabled at a later time. CREATE SUBSCRIPTION mysub - CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb password=foopass' + CONNECTION 'host=192.168.1.50 port=5432 user=foo dbname=foodb' PUBLICATION insert_only WITH (DISABLED); -- 2.40.0