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 1rvaSk-00Cx1t-OY for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Apr 2024 10:18:23 +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 1rvaSj-003ptY-FK for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Apr 2024 10:18:21 +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 1rvaSj-003ptP-4t for pgsql-hackers@lists.postgresql.org; Sat, 13 Apr 2024 10:18:21 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rvaSb-002e5u-Bz for pgsql-hackers@postgresql.org; Sat, 13 Apr 2024 10:18:19 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a51a80b190bso97744166b.3 for ; Sat, 13 Apr 2024 03:18:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1713003491; x=1713608291; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=KwMU/EmgJrNytmz/ig1GRApZlBan6a/Vq2egkgD1jJM=; b=Ve3pwRBwsUGr1nXZSvQZa8eq7VtQoWlmIK0RiApIYjbaAaeIg82pA1wYT6i6esBPY4 6xLfCeUg5gYduSvWvK8UiarRb4II1yes73VnuXx8Xe1sdzRaoT8o/fXsqUJKzEh627PJ CRX6fwnQ0yWv1138DWoxQsR2GiGGIe3Mpd9bLBqNmJ1OEGprVw9kt9PpUa/g70BBPtOm eG7yyef+YBzk4Tz68E86OLQ1nh2sfKdCQ+kYHFwzU38vSPWyg9caLb8MJeLSz8NXiLfS xC3jwDx5a4pBgM/l6U6Nm/ihyTbNrYMmQrJYYKzzygmHNcOEFeGybB/q42QZVtZbJ+EH J0Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713003491; x=1713608291; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KwMU/EmgJrNytmz/ig1GRApZlBan6a/Vq2egkgD1jJM=; b=YQtdA+tqhneCy4aCjllPmmjRh/KVbURN2IEju3zEgQGMnXVksppCqBapnFjIlubLI0 ceu5wl/arvZRhSq4eGMisbAI7KYUhVhWYpfDO6qaVXAHy/83h5lyGM1g7wNFJEompjW8 DJGqPf49Sj/1wnlbMKGaNVDcROtsjuA3vAs/u+Gj8FOrwaJ+JQ7qfKah8zn7rXsNIKZl 3184ttE8k0aDMrowIWd/rruSKspiE0wiMuxvRIatjcCJkwnvIn3yKy0rDbNZ2OcRFKkr 3waXxCL0jXqtfdZSwld5RBFYVbv1oP447jGZYa7VPe+YJNZ3qzjKGH0631nL1Go28bHW gb0A== X-Forwarded-Encrypted: i=1; AJvYcCX9Nllqqzk9tD1BOZkeqJgbbfU8KQ2a+CDeTTjzBhXzKfXn2JDkCBro0iPYmb1aRgCBaLw0QeoOoEv09xzi0kmuTxHigr7ibF6WSPy7 X-Gm-Message-State: AOJu0YxxMibKjy3sKO5kEVqeANonj4lvfpRCJ4UmXDXFXUgtlqZYlj72 YpAo9lSUsEukfv2ymFBatSZYCGN8g6q5o64SfkLiFtCJgvwmTxpD2qgZeoH06Q== X-Google-Smtp-Source: AGHT+IHqsl6/Xpy8iRoD5hBgo7WU09iSGnv6R6ZPfTUUob7B6o1MGXWcjf96u6mtRaIBmgwgdbGRCw== X-Received: by 2002:a50:99cf:0:b0:56b:829a:38e3 with SMTP id n15-20020a5099cf000000b0056b829a38e3mr4419709edb.16.1713003491144; Sat, 13 Apr 2024 03:18:11 -0700 (PDT) Received: from [10.137.0.18] ([88.128.92.100]) by smtp.gmail.com with ESMTPSA id fe7-20020a056402390700b0056c3013485csm2477259edb.69.2024.04.13.03.18.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 03:18:10 -0700 (PDT) Message-ID: <86ce0459-b879-4320-9e10-d38510810d56@enterprisedb.com> Date: Sat, 13 Apr 2024 12:18:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: post-freeze damage control To: David Steele , Tom Kincaid Cc: Michael Paquier , "Andrey M. Borodin" , Alvaro Herrera , Stefan Fercot , Robert Haas , "pgsql-hackers@postgresql.org" References: <202404091545.7zont3umry74@alvherre.pgsql> <4D31BF67-4138-41DC-831D-4BCE0466A59F@yandex-team.ru> <71fcff9e-371b-4f6a-bd34-bfe5cffb864f@enterprisedb.com> <4fb270c4-2ae0-4439-92e5-2941e73122ca@enterprisedb.com> Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 4/13/24 01:03, David Steele wrote: > On 4/12/24 22:12, Tomas Vondra wrote: >> On 4/11/24 23:48, David Steele wrote: >>> On 4/11/24 20:26, Tomas Vondra wrote: >>> >>>> FWIW that discussion also mentions stuff that I think the feature >>>> should >>>> not do. In particular, I don't think the ambition was (or should be) to >>>> make pg_basebackup into a stand-alone tool. I always saw pg_basebackup >>>> more as an interface to "backup steps" correctly rather than a complete >>>> backup solution that'd manage backup registry, retention, etc. >>> >>> Right -- this is exactly my issue. pg_basebackup was never easy to use >>> as a backup solution and this feature makes it significantly more >>> complicated. Complicated enough that it would be extremely difficult for >>> most users to utilize in a meaningful way. >> >> Perhaps, I agree we could/should try to do better job to do backups, no >> argument there. But I still don't quite see why introducing such >> infrastructure to "manage backups" should be up to the patch adding >> incremental backups. I see it as something to build on top of >> pg_basebackup/pg_combinebackup, not into those tools. > > I'm not saying that managing backups needs to be part of pg_basebackup, > but I am saying without that it is not a complete backup solution. > Therefore introducing advanced features that the user then has to figure > out how to manage puts a large burden on them. Implementing > pg_combinebackup inefficiently out of the gate just makes their life > harder. > I agree with this in general, but I fail to see how it'd be the fault of this patch. It merely extends what pg_basebackup did before, so if it's not a complete solution now, it wasn't a complete solution before. Sure, I 100% agree it'd be great to have a more efficient pg_combinebackup with fewer restrictions. But if we make these limitations clear, I think it's better to have this than having nothing. >>> But they'll try because it is a new pg_basebackup feature and they'll >>> assume it is there to be used. Maybe it would be a good idea to make it >>> clear in the documentation that significant tooling will be required to >>> make it work. >> >> Sure, I'm not against making it clearer pg_combinebackup is not a >> complete backup solution, and documenting the existing restrictions. > > Let's do that then. I think it would make sense to add caveats to the > pg_combinebackup docs including space requirements, being explicit about > the format required (e.g. plain), and also possible mitigation with COW > filesystems. > OK. I'll add this as an open item, for me and Robert. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company