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.92) (envelope-from ) id 1jGJWQ-0001ds-PY for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2020 09:37:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jGJWO-0007GS-V9 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2020 09:37:24 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jGJWN-0007Ae-Vg for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2020 09:37:24 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jGJWK-0006NP-9F for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2020 09:37:23 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 161E15C00F3; Mon, 23 Mar 2020 05:37:18 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 23 Mar 2020 05:37:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=D60TgnxQb2C496sw3e3dCZlPhW8goN+0ZJymRsgOP Tw=; b=k3554nhnfoUcrUF/GlcwvnWUyblo9pQHyzqwHAZ2qxOXIdtAbegeWXrxR ASHLnvK7f5Etpl5BDnTqOKKIMC84vB5753LjTB9PhYtZWO1kmWOxYMGbHMgHqMYL 4xITvdoxC97U/xxly7cr7QeXdTOy6tHMaAs8R2c1PyOAbO+YpqFc0KgVHvrFy3UI VizT+IBsWqnDFSt5PJxD0xY3L+kx0ZTv6LGD2B/tlODeOOt7dwKLIkdvWT41WpcU BGBBxDFf7f1AVJiQwKY5jpsA/8VMeRX58XR2LQSxIYRpMfdB65Z0l8Ly3us3SbfA 9urkCsjmu7INAgibD/0FbtDp+tQ2g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegkedgtdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefheenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucffohhmrg hinhepvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrddvgedvrddvudefrddv gedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepph gvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 4A7A9328005E; Mon, 23 Mar 2020 05:37:17 -0400 (EDT) Subject: Re: Make mesage at end-of-recovery less scary. To: Kyotaro Horiguchi , michael@paquier.xyz References: <20200228.160100.2210969269596489579.horikyota.ntt@gmail.com> <20200228073318.GD2688@paquier.xyz> <20200228.172806.1107809554616271723.horikyota.ntt@gmail.com> <20200305.160650.1027844943773682801.horikyota.ntt@gmail.com> Cc: pgsql-hackers@lists.postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4a9fc5b1-34c8-46ec-9b71-d4763d70311d@2ndquadrant.com> Date: Mon, 23 Mar 2020 10:37:16 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200305.160650.1027844943773682801.horikyota.ntt@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-03-05 08:06, Kyotaro Horiguchi wrote: > | [20866] LOG: replication terminated by primary server > | [20866] DETAIL: End of WAL reached on timeline 1 at 0/30001C8. > | [20866] FATAL: could not send end-of-streaming message to primary: no COPY in progress > | [20851] LOG: reached end of WAL at 0/30001C8 on timeline 1 in archive during standby mode > | [20851] DETAIL: invalid record length at 0/30001C8: wanted 24, got 0 > > I changed the above to the below, which looks more adequate. > > | [24271] LOG: replication terminated by primary server on timeline 1 at 0/3000240. > | [24271] FATAL: could not send end-of-streaming message to primary: no COPY in progress > | [24267] LOG: reached end of WAL at 0/3000240 on timeline 1 in archive during standby mode > | [24267] DETAIL: invalid record length at 0/3000240: wanted 24, got 0 Is this the before and after? That doesn't seem like a substantial improvement to me. You still get the "scary" message at the end. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services