Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enbva-0000jJ-Dv for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Feb 2018 03:15:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enbvY-0000sb-QX for pgsql-bugs@arkaria.postgresql.org; Mon, 19 Feb 2018 03:15:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1enbvY-0000sS-8H for pgsql-bugs@lists.postgresql.org; Mon, 19 Feb 2018 03:15:40 +0000 Received: from new1-smtp.messagingengine.com ([66.111.4.221]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enbvQ-0002Ee-C8 for pgsql-bugs@lists.postgresql.org; Mon, 19 Feb 2018 03:15:39 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id B1DD51249; Sun, 18 Feb 2018 22:15:29 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sun, 18 Feb 2018 22:15:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=CZ2uDgsyixczv+UgbOBxkIaQUvRNu2rfxPQUP/aRQEE=; b=uOpa8pAR +0d0MZ/ABcYU2wb792tCOtvfEYnOC/8iwXtNfBLNDVzW2ZXsTLs+PQPF3AXBRGns mdESS5cvb764yhHC0NeeRRUxgwhRzDuRa44KVpPd+gSKVNNDCX3ZfQd28oyuMu+C ptR3/RbAnER9oZczpKNVyBUk+XekCULlWT2XhWK/lX34rouc1Tt2U+4GZcjStUXr /Hl8E1GoVoy4oBHTJibFXqzSvG0oqL/yM2wdTISD6HpK+LvDc5KNk5tPqybYvMKU Wx8TlPrOyz9T30F3icQYmw4ZwgmMqB8UYcKqxi+EC9YgDEhF7Bcj//bz8DD63hrV ARsySNup7FWIJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=CZ2uDgsyixczv+UgbOBxkIaQUvRNu 2rfxPQUP/aRQEE=; b=P93SklC8CM9ay0+XYnn2WMxCTI71CON9KaRNU/qmcJ7Jm VQm6T16iaEWjVsb+yRlw2SrcfVf5p/MmhCS2S/CQGHAG0lWFtOFAnZPM6ypaZtxH 5h0W3kdx0ZMbYeL/mMmKv8WJTF6sWiW2PctyQFWzi/4628YpqajQBtBJIehmzDs0 KBidlfIWwZs+VXZzxdF2kIYtd/WBdobqTCZ/kzLHFhSxHZzkpm08R4g8Hvnb3e1K fIUB935dopepsQGNi1TnDcrgdIPlyITYHGCMGjaoL9AygnKgw6i5FqH2/VezZqVd fGseLYzJqQeORoah9lUCO3EJiV72CWTHJJWDLfEdw== X-ME-Sender: Received: from paquier.xyz (mp76f1fa78.ap.nuro.jp [118.241.250.120]) by mail.messagingengine.com (Postfix) with ESMTPA id F09E47E1F4; Sun, 18 Feb 2018 22:15:27 -0500 (EST) Date: Mon, 19 Feb 2018 12:15:24 +0900 From: Michael Paquier To: franz@kalibrr.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15073: Bad error message for when pg_basebackup fails due to incorrect wal_level Message-ID: <20180219031524.GA8332@paquier.xyz> References: <151900699070.1391.5862985411054912618@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="17pEHd4RhPHOinZp" Content-Disposition: inline In-Reply-To: <151900699070.1391.5862985411054912618@wrigleys.postgresql.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --17pEHd4RhPHOinZp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 19, 2018 at 02:23:10AM +0000, PG Bug reporting form wrote: > PostgreSQL version: 9.6.6 > [...] > > After some tinkering, we found that updating the following line in the > primary's postgresql.conf from: >=20 > wal_level =3D archive >=20 > to: >=20 > wal_level =3D hot_standby >=20 > resolves the issue.=20 >=20 > It just seems like a bad user experience and a more meaningful error mess= age > would've helped. In PostgreSQL 9.6, "archive" and "hot_standby" have the same meaning for wal_level, and they map to the new value "replica". Please note that with older versions of PostgreSQL, it is perfectly possible to take base backups with wal_level =3D archive using pg_basebackup. You just need to make sure that max_wal_senders has a positive setting value.=20 -- Michael --17pEHd4RhPHOinZp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlqKQUwACgkQnvQgOdby QH1JaQ//Qx7dnmZzNO+T2Q2Eth9ktLew3pK8ePq+llL4HFaRsjbbO4ZiwxD8OvZ2 els2jMhOHnqjU4590QSosAQH1lux3NdVqqK2gyhmbSeVpOmdaOjyDYo8azefnM3F 3xElnlBh58htHZ6iCQ9hdc6jGQkmZGBrT53wiSt5c3BD0RLkEy5sNML6fZe8Ksr0 nXRwE1Vm+DH2yfAfNCPQSrtRMRFx8u7bNpAqoH3JVOiNveVYRerIWcn/CEexZunC 0o90JUAQ5FoJU+00QTr2ZOVIKNvzGZYDJrbWfKpTClM0ysAQTHjioRWb4+9o6Q1F Vi05le8+nrhS+rG7Qm+zYB8LgEtK6DXs1fyqPWhQniMo4j/MwTCfc4iplTqSEqZP 6UJ/hAHRgPySJ/lJO/8FuFoTJPqm/JjS+9S3NCtDJUNpa3Cj+IMdtydbKofjo+GM qoQi3/cu2Eot9FATAvWMuKtvkWUmogi1hhTM+4rTsp77lzFa8mg917oz0C6a2gKU EuCjM7OI/cy460QfRG9brzsk6ua+vi8QSttwCwX7K/OLO0Taj4yfccJ7GKQcaJv+ ad5trcuCC5Wh3cTl6eHlh+Lhzdazn7/gHJ2zpmq+J9ylQcanTBcVGtVsu77isjL3 hr1pdFDSoCj/4UwSIJAm2z0hXJFyu0nBlQPnfPEftda9IM8dSZg= =8ioI -----END PGP SIGNATURE----- --17pEHd4RhPHOinZp--