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 1pHPZQ-000559-V8 for pgsql-general@arkaria.postgresql.org; Mon, 16 Jan 2023 13:30:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pHPZO-0003tr-Sf for pgsql-general@arkaria.postgresql.org; Mon, 16 Jan 2023 13:30:38 +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 1pHPZO-0003th-Hy for pgsql-general@lists.postgresql.org; Mon, 16 Jan 2023 13:30:38 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pHPZL-0007qv-UB for pgsql-general@lists.postgresql.org; Mon, 16 Jan 2023 13:30:37 +0000 Received: by mail-ed1-x532.google.com with SMTP id y19so7152495edc.2 for ; Mon, 16 Jan 2023 05:30:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=Ay1Lh9iNwl1Fg9AHXsproBzDMHl4KSJhcw/vtml68QE=; b=fX/taBEvozPbiU7rMEwpu5CMf5IuyPozMkjfkhzSHBeVNjFvYqJZLAbj+zqXm6Xw2a L3NS7bKMu/y1dNaFWS2rZPnp9F+xOsX8aEXknmjk4bXNpmp6gCPWs+o4hAinLIFZe5MO fQ4EFZ+NC+pxJIBdzm4w8lNtKYBHwY6xRXF550E/1Ong0ecd40Ps+nFAFoUl+qkEGBjX TdfICUZL32KMsrwjv7lWOugz/ME8r193C5z1bf5vFGxfGuZ9bJrfWurNNllylDTMwFSD LfA/qk4/WdNM65JgcJtju405jn5LZgWenWXlH/VEha7UNW2UISX2auBZDG1V3fVZBgAu AWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ay1Lh9iNwl1Fg9AHXsproBzDMHl4KSJhcw/vtml68QE=; b=khlJynmE9jKeuBGo6S16ffybjfFI/HRjt6+4GRy5NG4U4vT5L768pMCBnU7xBgJKc6 Oz0Lkfee/d3xQSO2Yq/4uZBrSeLajIw4USkgdVizwVdZYCbJ+AxCUMpSW64Jb5ibxko0 MhY++tXjWifHzBCiVfcyUy/jhfH3RgBuZcR7TCqVA0kiwBec1/V4DGwdc0DuNfPYxZi6 aq3TgX8W48YB66p3YI+/u5vvXQeze2aFe2UCCYOB9c0l9+rT1sj6skVsQjK/luqnbyKN T/ztu0c9iDjwFavpOLgfW4dS5xhLgDXR9yo2MWoQhHpEbGVkDUJqg2RzlQe5ZczBkkGq ORGA== X-Gm-Message-State: AFqh2krEGorzpbeKhG9JciDG5Ssm0m0l8KFp1oC+3ZiqlslUqhJhH6Qk g3Gw4UDO6hMEBi6TkMOYUhP/TQO/eEsGNNxf X-Google-Smtp-Source: AMrXdXtbMdMeF+DWb3k5QTQGJqeJKWbruiEyaCrrjCeaXry+o6bXXwl4Udun0+nwDRAuzvTSFFuV5A== X-Received: by 2002:a05:6402:28d:b0:496:bdb5:572f with SMTP id l13-20020a056402028d00b00496bdb5572fmr34122145edv.31.1673875834360; Mon, 16 Jan 2023 05:30:34 -0800 (PST) Received: from localhost.localdomain (62-47-151-167.adsl.highway.telekom.at. [62.47.151.167]) by smtp.gmail.com with ESMTPSA id vc10-20020a170907d08a00b008717a377125sm594321ejc.85.2023.01.16.05.30.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 05:30:33 -0800 (PST) Message-ID: <4e35b38138ccda4c46139397f319893254c75349.camel@cybertec.at> Subject: Re: AW: AW: [Extern] Re: postgres restore & needed history files From: Laurenz Albe To: "Zwettler Markus (OIZ)" , "pgsql-general@lists.postgresql.org" Date: Mon, 16 Jan 2023 14:30:32 +0100 In-Reply-To: References: <0ce7906d55174fa6902c011c0aa0e884@zuerich.ch> <6a648ddf9d8747e7bc18fa06ac7f48a2@zuerich.ch> <6b0bc60cae8d0268f70b33d491d8399a0e4e0db2.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.3 (3.46.3-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2023-01-13 at 11:23 +0000, Zwettler Markus (OIZ) wrote: > > -----Urspr=C3=BCngliche Nachricht----- > > Von: Laurenz Albe > > Gesendet: Freitag, 13. Januar 2023 11:25 > > An: Zwettler Markus (OIZ) ; pgsql- > > general@lists.postgresql.org > > Betreff: Re: AW: [Extern] Re: postgres restore & needed history files > >=20 > > On Thu, 2023-01-12 at 16:50 +0000, Zwettler Markus (OIZ) wrote: > > > What would you do in case of a disaster when all history files in > > > pg_wal are gone and also deleted in the backup due to the backup rete= ntion? > >=20 > > Easy.=C2=A0 Take a new base backup immediately and don't try to restore= a backup that > > was taken on an earlier timeline. >=20 > Hope I got you right. >=20 > You meant the latest backup within the latest timeline is always working = even if the latest history files are gone. Yes. Yours, Laurenz Albe