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 1mgAS1-0005Eq-1k for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 18:48:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgARz-0000WG-0x for pgsql-general@arkaria.postgresql.org; Thu, 28 Oct 2021 18:48:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgARy-0000W6-Ky for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 18:48:30 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mgARr-0001hs-GT for pgsql-general@lists.postgresql.org; Thu, 28 Oct 2021 18:48:30 +0000 Received: by mail-ot1-x336.google.com with SMTP id v2-20020a05683018c200b0054e3acddd91so9936860ote.8 for ; Thu, 28 Oct 2021 11:48:22 -0700 (PDT) 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-language; bh=bnlsWX/7t3TwC1ORX9LXtvuXusYd0v3fXVu5XN2KUHE=; b=VmYv44b9g+LuP+2SEPcmYKsOEKmimDJ3Naf1Al0oK7oOnMpA4V7RWlYrIe2FTEoErK AFj/LCDlC9LY/3n7fY7nrcDLwCgspSq2Du05l87PbDrEWVNGAxcdzEJ4Il+I4UeQMmeV GjEtUUhRaZcG+q7UpAyVq77ATW5eBePiUb/nfZS1aai8cArLzAQMHqNaiZJ5XBYIT/ET ZO/LQ8eHDa3qYbxMa/rB10liCW1P7XUfa0tAe8G+61Kv9lVxVqBU/oXOUNBIdMoRF9M7 YUlhmPk2HSlZbxq1zX7XLsi1/HH2H+F+B73SMX6di1rdaa4kzCbJv7HmBf+3O40eTTLQ AVoA== 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-language; bh=bnlsWX/7t3TwC1ORX9LXtvuXusYd0v3fXVu5XN2KUHE=; b=3thgJDaJGuDMqdQqZsv47Z0A3kWx6mSbZ6iMrHD0GGd5xQh6InaZnpWUoULhTd6FgO ndvf4nRkWxiaGgO+iS7aXq1kPuSK5m64gfM3E+OBm326IZaAMnYJjdg+U4OQ3jOsYEFF 8KOmBUWgsPJDq7rexLGkUgtwZmQsVNCR4ojS5Ouq3fnXvFiKnichxStBiOJsrgk3yBk5 DRCNR87oxIsKCzHzp0gUrliQ2+D4xDtjbxT7G16ABKBbILGv7rvHDggAjRqF3Y6xb1rV NvsMM72IRLtr0qWOq2hSXL2EslbtOOX3GU/JvzXzMrXNuErNbWr9RF2t7ZBT+XPBJ5hR AzXQ== X-Gm-Message-State: AOAM5302W4Vk+9UOMR+TgOImiTzoAYakbfWL+SpiST777TlAIKvoObEf xJBtvZrRJYLg4CmkXVmFHJKfZAbygV8= X-Google-Smtp-Source: ABdhPJyg5OWAlWzyFxy0n9nCWpo8fVVjavZrQnH3VwpEVQc79ws2TGMC2m2/Y4CN7HBg7detD64VXg== X-Received: by 2002:a05:6830:10d1:: with SMTP id z17mr4927619oto.70.1635446900910; Thu, 28 Oct 2021 11:48:20 -0700 (PDT) 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 bq10sm1316597oib.25.2021.10.28.11.48.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 11:48:20 -0700 (PDT) Subject: Re: Incremental backup To: Adrian Klaver , pgsql-general@lists.postgresql.org References: <4ad9560c-d6f7-3f74-b577-cf72c93195d0@aklaver.com> <68943e88-7d6b-edb3-90b5-782b9fb5fcbd@gmail.com> <57f54e84-c5f2-84fe-6e65-de5f4ddfdd47@aklaver.com> From: Ron Message-ID: <995bab59-10e3-eaa9-2b93-afb0474595cd@gmail.com> Date: Thu, 28 Oct 2021 13:48:19 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------8163372C036438BC2461B396" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------8163372C036438BC2461B396 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 10/28/21 1:00 PM, Adrian Klaver wrote: > On 10/28/21 10:51, Ron wrote: > >>> >>> Except we have no way of knowing what the situation is. I prefer not to >>> assume a context. >> >> You make it sound like incremental (and differential) backups are some >> complicated thing that needs context.  That's utter and complete rubbish >> in every Enterprise RDBMS except Postgresql. >> > > This is Postgres so we do need context. > > Also you have not defined what you consider incremental backup? I for one > would put this: > > https://www.postgresql.org/docs/14/continuous-archiving.html I define Incremental and Differential backups the way everyone else does: Incremental Backup: capture all *changed data* since the last incremental backup.  (Not the same as WAL archiving.) Differential Backup: capture all *changed data* since the last full backup. Transaction Backup: capture *all transactions* in a log file. > > forward as a candidate. > >> Something like "BACKUP DATABASE (DIFFERENTIAL) foo TO foo.bak;" should be >> a fundamental feature of every RDBMS that claims to be enterprise class. > > Knock your self out: > > https://wiki.postgresql.org/wiki/Developer_FAQ Not doable in Postgresql because WAL files are global to cluster. I've read multiple times that will not be changed. PgBackRest does full and incremental backups, plus captures WAL files, but globally to a cluster. -- Angular momentum makes the world go 'round. --------------8163372C036438BC2461B396 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 10/28/21 1:00 PM, Adrian Klaver wrote:
On 10/28/21 10:51, Ron wrote:


Except we have no way of knowing what the situation is. I prefer not to assume a context.

You make it sound like incremental (and differential) backups are some complicated thing that needs context.  That's utter and complete rubbish in every Enterprise RDBMS except Postgresql.


This is Postgres so we do need context.

Also you have not defined what you consider incremental backup? I for one would put this:

https://www.postgresql.org/docs/14/continuous-archiving.html

I define Incremental and Differential backups the way everyone else does:

Incremental Backup: capture all changed data since the last incremental backup.  (Not the same as WAL archiving.)
Differential Backup: capture all changed data since the last full backup.
Transaction Backup: capture all transactions in a log file.


forward as a candidate.

Something like "BACKUP DATABASE (DIFFERENTIAL) foo TO foo.bak;" should be a fundamental feature of every RDBMS that claims to be enterprise class.

Knock your self out:

https://wiki.postgresql.org/wiki/Developer_FAQ

Not doable in Postgresql because WAL files are global to cluster.  I've read multiple times that will not be changed.

PgBackRest does full and incremental backups, plus captures WAL files, but globally to a cluster.

--
Angular momentum makes the world go 'round.
--------------8163372C036438BC2461B396--