Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcDT4-0001zK-Cb for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Dec 2018 17:59:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gcDT2-00086X-Ej for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Dec 2018 17:59:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcDT2-00086Q-4Y for pgsql-hackers@lists.postgresql.org; Wed, 26 Dec 2018 17:59:40 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gcDSz-0002Jh-H8 for pgsql-hackers@postgresql.org; Wed, 26 Dec 2018 17:59:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wBQHxW8r032290; Wed, 26 Dec 2018 12:59:33 -0500 From: Tom Lane To: Kyotaro HORIGUCHI cc: pgsql-hackers@postgresql.org Subject: Re: "repliation" as database name In-reply-to: <20181221.155614.267264951.horiguchi.kyotaro@lab.ntt.co.jp> References: <20181218.184825.02619975.horiguchi.kyotaro@lab.ntt.co.jp> <20181221.155614.267264951.horiguchi.kyotaro@lab.ntt.co.jp> Comments: In-reply-to Kyotaro HORIGUCHI message dated "Fri, 21 Dec 2018 15:56:14 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <32288.1545847172.1@sss.pgh.pa.us> Date: Wed, 26 Dec 2018 12:59:32 -0500 Message-ID: <32289.1545847172@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Kyotaro HORIGUCHI writes: > I found that in the documentation thanks to a notification > off-list. And after some reconfirmation, what I want to fix is > only a few lines of comment in pg_hba.conf.sample. > -# database name, or a comma-separated list thereof. The "all" > -# keyword does not match "replication". Access to replication > -# must be enabled in a separate record (see example below). > +# database name, or a comma-separated list thereof. The "all" keyword > +# matches all databases. The "replication" keyword matches a physical > +# replication connection request and it must be enabled in a separate > +# record (see example below) Hm, I agree that the para doesn't read very well now, but I think this could be improved further. How about something like # DATABASE can be "all", "sameuser", "samerole", "replication", a # database name, or a comma-separated list thereof. The "replication" # keyword matches replication connection requests (see example below). # The "all" keyword matches all database names, but not replication # connections. regards, tom lane