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 1uCv9y-0043IH-9Y for pgsql-general@arkaria.postgresql.org; Thu, 08 May 2025 06:55:10 +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 1uCv9x-001WBU-Bn for pgsql-general@arkaria.postgresql.org; Thu, 08 May 2025 06:55:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uCv9x-001WBM-1H for pgsql-general@lists.postgresql.org; Thu, 08 May 2025 06:55:09 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uCv9u-000ivb-0U for pgsql-general@lists.postgresql.org; Thu, 08 May 2025 06:55:08 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-601a8b6c133so957269eaf.1 for ; Wed, 07 May 2025 23:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746687306; x=1747292106; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o1W2K1xbIJl0xgk+XAAzFpScTA1a8intuuGYN5ZCJ7M=; b=DGEeIdRVPWS0A8uvuLnw2m6317/rT9UJwc7LWgQ2XbwzeW+y2R3uN9DI3N5pb3hFs+ IqJ5M3WJ+BnamIhwJcDDNb5ai4cETqxHZ6V8VPpGOM3OMI5gieY4uHkYQPSItYrD24La tEQ5SSH1/yUgJJSCr0F0VYmcMfZMQ8lsTKJO8LbWv5qeBw+J7bV63WeZ9l+Nhe/GRQ3Y nFvVaABc/nOlilPNLDG3dRLxRNXToVTEpzTqUZl5XqYvmmgM3dyHBcRgwKQ6vKTFsYUE VfWECgoQE3iY3JSorUV9om5f485fKLw60L6ACTyb/TZIvq+VpRiEG1RcZ09mTXrlJ6XT 4lBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746687306; x=1747292106; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o1W2K1xbIJl0xgk+XAAzFpScTA1a8intuuGYN5ZCJ7M=; b=GePjyfZ1bp2UQ+eMmQMe1H02BJgLA0BBvPnjjv25tF2EFKKmsFoeCI1iwlIoEGr5iu 7+gaZMZAOGfSR5f4EQULj2qnG7TpXaS+1YBFyuRq/iA4lHXmP94OHfSC/tnsq/V53x+A c5vQetdI/ww7gZG9gBnKwpK0e+hGr+/3f3VSW59mehcMbl9WhRrYC8IVPAtt2DFmpGKg 8cdkakZCl2m96gQhRJd2arTlKURTaJjI8Rsa7oELlHJQIY+yfQTk0JbGuhm6cCPUH964 XbvMzUnurs+WojCdzzuG7txRRMs9KM+dBtwbghUxGe1gIoSYGJpsxG7Z4pGe+W8/WhKF myBg== X-Gm-Message-State: AOJu0Yz/XaxtY7Oui1i33Y+LIIjzkLadcl1wBEL+E6QCT91Kmci/qGoD teuGyoSaeigkrDh+6ugR3grWeAGmzJaft/du6uSJrhmvAkN9vZuBMPubVeOqamEjwBcZRWz40Uu iJhsGS/5fyW/DDwkOgPe1lFb7Lz2TQY2q X-Gm-Gg: ASbGncuCv9398Z6F0rVUs9n/I25gR9geqFYdA4HEIFc03vAj/UWryLacyDGi1C8rZuD Zg2A4KmtFC/X+qKMwfFo3zF0YYqiEQe2a8fYE8YnGw7+Lxh6Knc3t7MhPCMq68Vg6/lCfp8wPZy iGBZ8sQ9DiaPIt7eS/ArL0 X-Google-Smtp-Source: AGHT+IHfjG/pbleJVswYPzTiiOWmNdFgIaPUiUCEd0rTLMFiqpAyZN0X3GUPBoeJ23+pgxAidFMn9uzqu6r194rHN+k= X-Received: by 2002:a4a:c584:0:b0:607:de19:a537 with SMTP id 006d021491bc7-608331f4459mr1522790eaf.0.1746687306092; Wed, 07 May 2025 23:55:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Luca Ferrari Date: Thu, 8 May 2025 08:54:30 +0200 X-Gm-Features: ATxdqUH_GfW7I3y2oeBZYxjSJYbR0_gdAOKV9Key2sLhRMwQq3ZVs8lsdfdSBBQ Message-ID: Subject: Re: pg_rewind problem: cannot find WAL To: Laurenz Albe Cc: pgsql-general Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 7, 2025 at 3:55=E2=80=AFPM Laurenz Albe wrote: > > I don't think it is connected to a WAL switch. > Thanks. > I'd say that you should set "wal_keep_size" high enough that all the WAL > needed for pg_rewind is still present. > > If you have a WAL archive, you could define a restore_command on the serv= er > you want to rewind. I've pgbackrest making backups, so I have an archive_command. I'm going to see if putting a restore_command can fix the problem. Thanks for the suggestion. Luca