Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tdzTb-00BClm-F5 for pgsql-general@arkaria.postgresql.org; Fri, 31 Jan 2025 22:27:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tdzTa-0030XS-L9 for pgsql-general@arkaria.postgresql.org; Fri, 31 Jan 2025 22:27:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tdzTa-0030XK-Am for pgsql-general@lists.postgresql.org; Fri, 31 Jan 2025 22:27:02 +0000 Received: from fhigh-b2-smtp.messagingengine.com ([202.12.124.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tdzTX-002bTM-13 for pgsql-general@lists.postgresql.org; Fri, 31 Jan 2025 22:27:01 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 28CEF2540111; Fri, 31 Jan 2025 17:26:58 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Fri, 31 Jan 2025 17:26:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1738362418; x=1738448818; bh=o0xcPMjoUMDHoC/P9l9w0OJ/OkHIy1S71Wwsx9f/iGk=; b= ltYbXRmSYX7yAYJgyJRRun4X/o/eVsGkIPhQB7btcC+kM73KJiS5nr5DS5cRc/71 AAu8riyugCIY+ZW+n7BdU5ozmWiAGAHMPEueWLF+yzTyBlxiFu1UOSeDE0yxLfUZ LDqPPCbRXKu3dY13+Auh8ISgw4X2975JrbK3s2GJ0LqwkCWQxfC1diRowgjeQbxl XSpcRvGjYjiHiEFwwuvRsXGZ80Pkke3SO83DvdUT59+vixLHJOhlkB0KiXMUvJ1R 1lXVlMdqBi9Jks+uiySWdol3bVF/dayY47Qwh8Fryr72eclGS7LcCxAE6RP4ijBP 5DUy3l6nETq0OsOtpRXF4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1738362418; x= 1738448818; bh=o0xcPMjoUMDHoC/P9l9w0OJ/OkHIy1S71Wwsx9f/iGk=; b=0 8SMjgW4zZLbdJzy1lF1rrcMU+9vhiPYRJNa1P8TRg7iKnFHm296tL4irTuc+sGJW Oz2ubwj2WJ/omV02ENen87rKoUw3mpaVmc5cE8UJv+so9EcWkXV8dcW1XzY1GIhl 9opk+rP4tPe9OmPBTUkcSID0HXV+4G93wurB7e7Ahl1JeFjR096rm0g/ZyEgY747 tguKexMGSACd6AsR2LQyez7RaR7UKBRDl/vAL4gvXGR577V2Yc01l9Ny0pU+teYs 9+PhJIrMcgCOZFDlcUbaya+KtK0ckVLdWuSkXIJo55EaM6c5NRHHeggb3gyIL21Q PRAi8fyu8hK2pCxjB9fLQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdelleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrh esrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepuedufeejjefggfdttdeg hefgkeeuveekkeeiteettdekffehiedvtefhveffgeeunecuffhomhgrihhnpehpohhsth hgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmpdhnsg gprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehkughgrdgu vghvsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqghgvnhgvrhgrlheslh hishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 31 Jan 2025 17:26:57 -0500 (EST) Message-ID: Date: Fri, 31 Jan 2025 14:26:56 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres restore sometimes restores to a point 2 days in the past To: Koen De Groote Cc: PostgreSQL General References: <70c20a65-4624-4509-ac6a-ef7f0119ea28@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/31/25 13:52, Koen De Groote wrote: > > I should have asked earlier what is the archive command > > The example from the documentation, but with GZIP. So from the > documentation: > https://www.postgresql.org/docs/16/continuous-archiving.html#BACKUP-ARCHIVING-WAL > > Which becomes this: archive_command = 'test ! -f > /mnt/server/archivedir/%f.gz && gzip -c %p /mnt/server/archivedir/%f.gz' > > > > Are you setting standby.signal or recovery.signal or both > > Sorry, I keep confusing them. I checked my deployment code, it's > recovery.signal and only that. Do you have any of the Recovery Target settings from below set?: https://www.postgresql.org/docs/current/runtime-config-wal.html#RUNTIME-CONFIG-WAL-RECOVERY-TARGET > > Regards, > Koen De Groote > > -- Adrian Klaver adrian.klaver@aklaver.com