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 1la1d2-0005bZ-JV for pgsql-novice@arkaria.postgresql.org; Fri, 23 Apr 2021 19:38:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1la1d1-0004Il-Gg for pgsql-novice@arkaria.postgresql.org; Fri, 23 Apr 2021 19:38:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1la1d1-0004Fs-5b for pgsql-novice@lists.postgresql.org; Fri, 23 Apr 2021 19:38:15 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1la1cv-0001pE-Uu for pgsql-novice@lists.postgresql.org; Fri, 23 Apr 2021 19:38:13 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 500EA5F799; Fri, 23 Apr 2021 15:38:09 -0400 (EDT) Date: Fri, 23 Apr 2021 15:38:09 -0400 From: Stephen Frost To: Bruce Momjian Cc: Pavel Tide , pgsql-novice@lists.postgresql.org Subject: Re: suppress empty archive_command warning message Message-ID: <20210423193809.GL20766@tamriel.snowman.net> References: <20210423191750.GA7630@momjian.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/srDgWsSHqwGhACW" Content-Disposition: inline In-Reply-To: <20210423191750.GA7630@momjian.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --/srDgWsSHqwGhACW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Bruce Momjian (bruce@momjian.us) wrote: > On Fri, Apr 23, 2021 at 08:48:39PM +0200, Pavel Tide wrote: > > Is there a way to suppress the WARNING that is thrown in PG logs if > > archive_mode is enabled but the archive command is empty? Maybe some > > configuration key which I have overlooked? >=20 > Have you tried putting "/bin/true" in there, for non-Windows? Erm, that would cause all WAL to just be silently thrown away.. To have the same behavior as having it be unset, you'd set it to '/bin/false'. Of course, which you want depends, but generally you should be using a real archive command to archive your WAL, not throwing it away. Thanks, Stephen --/srDgWsSHqwGhACW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJggyIgAAoJEO1sijiDR2RVr3UP/1gZZiZH9e4UuWAe7BPI3SbW 8+sv1zz6Vgi994NKvVNt9S67cwRdP1803aB2v+LZASs8quq4p8ilvMtWq/pIMDWE imfIJwiHqb1yn5CKtPIrUTOox8oGzxyJhdPx2CQd9Wxmfh3vpUIMLnGKu/oSVP5V LRInTLRlfugdt00nluriIAF6wbG7REvPCBCgsLzWAz8WNjAfIwVaMV7KRsjXS7Nt JqHQu3tB+/2pJgltyafEyHWHc15l8VlUw7hsHuGPcfNyOGuvkohJUkl8H51gf1go dqOzEvYkzUjoxzTR4sb90eNhhEUGNwq6GwStPU3waJFWLZTnGPe+GGMwMIszZgir Md2rwNwJLdsKcACCaKfMSdfistaQRYCgI72OeC+TUcr+xalerAC6VekpQJW6bQ42 Y7GbovtaNvZT1M3msylQTXtzzAql9UjWw0h8DFeBg0CR9lxV7wLigqJ26vaONoTf hL94OSC8VHq02IZipSXxqGFihOtRjsGpLObja50ww2AkD+5hpZn1g7/Q8Yq6t0r2 03XsH0CKr1nHJ2Be2EPzIl0+0VfGmrTh67pAabbIOlH7W2fYGFkQlZwHNfbSwyNJ bygkM6HQX42Z2hDUXH76qxHjTW7et25GW4VoWTtqkGYvas9Ha0uWKlV8BWzR7cE7 ywM2cw9hA4ADvYrMMu2p =jlQP -----END PGP SIGNATURE----- --/srDgWsSHqwGhACW--