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 1n8SEo-0000sw-99 for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 19:27:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8SEm-0003EN-Ke for pgsql-general@arkaria.postgresql.org; Fri, 14 Jan 2022 19:27:48 +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 1n8SEm-0003EE-9y for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 19:27:48 +0000 Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n8SEk-0001a0-1U for pgsql-general@lists.postgresql.org; Fri, 14 Jan 2022 19:27:47 +0000 Received: by mail-oi1-x230.google.com with SMTP id s22so13530391oie.10 for ; Fri, 14 Jan 2022 11:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=ZVxzRQyTc+bP5gT8KD9g+RHVXPfARt873bHwXw4rTsQ=; b=KQNC0HFSwn8LoEYEiiPIffvu/eCohEAxLYmD1ePTQXLV6oBZuzZOazLA2FEzc7duQm 0akRiTjvQ0JsxCRuDQ+aqNHOURUoWELRQrQkISHqJc0f727K/YSwn4gTJmptzzXuIC8z G1YoyL2lR94RI9yLSbn6CbXMf27QTGlyLtJZjVOo/08UzU6rJC5CAdHcIGRNh5mQNghH mmxdK2IwcoYfYCgqQf0Jlx2qCB1BbglkBGeit24vagYCnf/iFINSDXXJdRKveuwMC9Af TItvoNUiYpgUSyFTa2dvTK1Ub9DZj8vDtR7/FFHwZR9T6ezot1vYJ1f7gQNupFe/K/X+ H3MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZVxzRQyTc+bP5gT8KD9g+RHVXPfARt873bHwXw4rTsQ=; b=7+UjxI+4uMffQ86ibimehIdTzvMhZQqZPR6jSyXaUUrwXQcen9A7HaDUeWIgtGj6KH OUzo1VcvlmiIaf5McT89fix6FYYsyIG/YX92tF0PSQQ8GL1W64cmuTmnx3Fl4YNkyt6/ VUuT6HN1/NqZkzFL3zHoiJcVr2MP5qhOwO2aPoRuFvRNM/MIRdx9WHhyXNGTIEMePq2l 2i7El6N7XteMdLUZzwQQZLaS+hrYflMPA16ssH3olQvvPgaaHU1OuAC7KrM/rcfhjbpO 5ikvLHpS0CDR65ToPepLwybKezYhLk14mjdjvL19XjEemI4Bd6e+tBULs2G2gSoI8Q2h C4Zw== X-Gm-Message-State: AOAM5306YMQ/l3stZkU9GrrKdF/KpIbUD1XU2RfYeHye0OoxGKxAynzp 9BE8TubxBKpwSXnq2OjeerGtKNlp+kA= X-Google-Smtp-Source: ABdhPJym8sm9SuWgEHCGRUJctiJHxkZ6KEO8ecor6TqDE9FlnqayiR7KFa3BWmNoFUqymS2jPUm8BA== X-Received: by 2002:a05:6808:d4f:: with SMTP id w15mr4282756oik.165.1642188464980; Fri, 14 Jan 2022 11:27:44 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id y2sm2272824otq.27.2022.01.14.11.27.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Jan 2022 11:27:44 -0800 (PST) Subject: Re: WAL Archiving and base backup To: pgsql-general@lists.postgresql.org References: <164bc278-a4cd-f7cf-613b-e1c94aa63e56@usa.net> <1d73a885-1c78-eec5-fbc6-fe5e0f621e5f@usa.net> <20220114183144.GA10577@tamriel.snowman.net> From: Ron Message-ID: Date: Fri, 14 Jan 2022 13:27:43 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220114183144.GA10577@tamriel.snowman.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/14/22 12:31 PM, Stephen Frost wrote: > Greetings, > > * Issa Gorissen (issa-gorissen@usa.net) wrote: >> Thx a lot. I thought about it but was not so sure about having a complex >> script (compared to the very simple version when using the exclusive backup >> - but this this is deprecated...). >> >> I will test your option with the simpler version and post it back to it can >> maybe land in PostgreSQL documentation. > The PG docs show how the command works and that's it. The commands > in the docs aren't intended to be actually used in production > environments. Writing a full solution involves having a good > understanding of the PG code and how WAL archiving, backups, et al, are > done. If you're not familiar with this portion of the PG code base, I'd > strongly suggest you look at using solutions written and maintained by > folks who are. Needing to read the PG source code to write a workable PITR recovery solution is a serious flaw in PG documentation (and why I use PgBackRest). The documentation of two other RDBMSs that I've worked with (Rdb/VMS and SQL Server) are perfectly clear on how to do such backups and restores with relatively small amounts of scripting. > Trying to write documentation on how to develop a complete solution > would be quite an effort and would certainly go beyond bash scripting > and likely wouldn't end up getting used anyway- those who are developing > such solutions are already reading through the actual code. > > Thanks, > > Stephen -- Angular momentum makes the world go 'round.