Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT0oj-0001kQ-1t for pgsql-docs@arkaria.postgresql.org; Mon, 27 Apr 2020 10:16:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jT0oh-0004NB-K8 for pgsql-docs@arkaria.postgresql.org; Mon, 27 Apr 2020 10:16:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT0oh-0004N4-ED for pgsql-docs@lists.postgresql.org; Mon, 27 Apr 2020 10:16:47 +0000 Received: from smtp2.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT0of-0004Sy-BT for pgsql-docs@lists.postgresql.org; Mon, 27 Apr 2020 10:16:46 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id BAB382E7AFAF for ; Mon, 27 Apr 2020 12:16:42 +0200 (CEST) Received: from s498.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 9B92B2E3698B for ; Mon, 27 Apr 2020 12:16:42 +0200 (CEST) Received: from s476.loopia.se (unknown [172.22.191.5]) by s498.loopia.se (Postfix) with ESMTP id 95110470851 for ; Mon, 27 Apr 2020 12:16:42 +0200 (CEST) X-Virus-Scanned: amavisd-new at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-1 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1] autolearn=disabled Received: from s645.loopia.se ([172.22.191.6]) by s476.loopia.se (s476.loopia.se [172.22.190.16]) (amavisd-new, port 10024) with LMTP id 04VrW0Ky1yg0 for ; Mon, 27 Apr 2020 12:16:42 +0200 (CEST) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.193 Received: from [192.168.72.43] (customer-89-255-232-193.stosn.net [89.255.232.193]) (Authenticated sender: daniel@yesql.se) by s645.loopia.se (Postfix) with ESMTPSA id 0BF36156E5B2 for ; Mon, 27 Apr 2020 12:16:41 +0200 (CEST) From: Daniel Gustafsson Content-Type: multipart/mixed; boundary="Apple-Mail=_4FEB076A-897C-4914-BD6E-B65ED7133E03" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Subject: Roles for pg_basebackup Message-Id: Date: Mon, 27 Apr 2020 12:16:41 +0200 To: pgsql-docs@lists.postgresql.org X-Mailer: Apple Mail (2.3445.104.14) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_4FEB076A-897C-4914-BD6E-B65ED7133E03 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Based on a recent conversation about backups I had I propose a small tweak to the pg_basebackup documentation. Listing the user types in the reverse order from today, putting superuser last, makes it IMO a little clearer that a REPLICATION role is preferrable to using a superuser for running backups. cheers ./daniel --Apple-Mail=_4FEB076A-897C-4914-BD6E-B65ED7133E03 Content-Disposition: attachment; filename=pg_basebackup_user.diff Content-Type: application/octet-stream; x-unix-mode=0644; name="pg_basebackup_user.diff" Content-Transfer-Encoding: 7bit diff --git a/doc/src/sgml/ref/pg_basebackup.sgml b/doc/src/sgml/ref/pg_basebackup.sgml index 01ce44ee22..12fadabfb8 100644 --- a/doc/src/sgml/ref/pg_basebackup.sgml +++ b/doc/src/sgml/ref/pg_basebackup.sgml @@ -51,8 +51,8 @@ PostgreSQL documentation The backup is made over a regular PostgreSQL connection, and uses the replication protocol. The connection must be made - with a superuser or a user having REPLICATION - permissions (see ), + with a user having REPLICATION permissions + (see ) or a superuser, and pg_hba.conf must explicitly permit the replication connection. The server must also be configured with set high enough to leave at least --Apple-Mail=_4FEB076A-897C-4914-BD6E-B65ED7133E03--