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 1pXQVp-0003AS-42 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Mar 2023 17:45:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pXQVn-0008US-ER for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Mar 2023 17:45:07 +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 1pXQVn-0008UI-38 for pgsql-hackers@lists.postgresql.org; Wed, 01 Mar 2023 17:45:07 +0000 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pXQVk-0007XQ-IX for pgsql-hackers@lists.postgresql.org; Wed, 01 Mar 2023 17:45:05 +0000 Received: by mail-lf1-x12a.google.com with SMTP id j11so3012810lfg.13 for ; Wed, 01 Mar 2023 09:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677692703; 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=WpoHVHoZRy22o4wBZj9NP5VD12ZhJkjhW+wuwt1TgW4=; b=Xk+PRKy4LfRD3bYU/T3hWmOv9nlBt8NE01MPUz7yQyihhBa/TtG14VN8y9wlFq00O7 eMH4QGKqBzsRCJjhgB+MhtvK7cM43yz1uEeH6krpsLtMOqpXYhPYUTe1rZZtbfUkXs2F kZA8cALP7RHr0fRUfy8JzmooZKmVtvfFZmOqTLOa66zHQjIA2fyk3j7yy8cWiK9IxWEw gBaZuGCOqUnkesRYgHl3/4AJ0oVFVivlH6jep6XCs2qiaX6hbni30ARRbETlm39C0T05 5Mf+OWSM2o3uVgJLnDBzImOEcDdc2pFb3MUFuXiB7KKLG8D091+r4nbzNZjtzaP+nr8F VwgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677692703; 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=WpoHVHoZRy22o4wBZj9NP5VD12ZhJkjhW+wuwt1TgW4=; b=Sf4PWhwQ0Y8wxg557RfWmBMM1D/So9Z8RRd0ACzDBqdzFG7VaACR4Y3gdhC1V8MCKV /fg6RPbfpyL+/8nQ+Ht/CnV1KLS2E5vwzABIpzA1a0pRMpB/O7YTLO9mM+8CFjRXdgSW vTe2NyPMP98SXvCwXRaLu6EWzwCAf0sBHRVjqD5V6SzhrLM344RJGgLvEWJsARNdl0SJ A0ntlhsmkH7f1bClB1U4yo0fb1bYHMOK+uNBagoc7OunpBYocqbq7MyPbANj+4Cyl2VP 6CoUxzxdxtTAraK0FlxTD8NLsnClnpqauFEY/FY+7UJhCG1YVTrc+/4QJDpT9Jw7jb1d fQTQ== X-Gm-Message-State: AO0yUKV7wk/cFxMscxCtgqNGxjzkwlrNBJaabmO3seh1BrpL2QKhdSSR TZeqyA8KOplLh21tzMzmT1TRCO3sleBHRp0HBfw= X-Google-Smtp-Source: AK7set8q/R7pUjtcOtS4zPnrwRUkQQSEcmGuBLZFYuvckLoxezR2UiDyN1l3bfq466nlWZQaTtgzJbpGox67I5dTTgo= X-Received: by 2002:a05:6512:118d:b0:4dd:9eb6:444d with SMTP id g13-20020a056512118d00b004dd9eb6444dmr8033659lfr.4.1677692702820; Wed, 01 Mar 2023 09:45:02 -0800 (PST) MIME-Version: 1.0 References: <3907196.1675957889@sss.pgh.pa.us> <20230209192952.jvx56yuutlxuvjjf@awork3.anarazel.de> <20230216163254.nktnbbb2b7wlpzwy@awork3.anarazel.de> <20230218211522.grbzg75vzjtqafzf@awork3.anarazel.de> <20230225190031.e3vesk22q5wpmmhc@awork3.anarazel.de> <20230301042919.GC1453450@nathanxps13> In-Reply-To: <20230301042919.GC1453450@nathanxps13> From: Robert Haas Date: Wed, 1 Mar 2023 12:44:51 -0500 Message-ID: Subject: Re: Weird failure with latches in curculio on v15 To: Nathan Bossart Cc: Andres Freund , Tom Lane , Michael Paquier , Thomas Munro , Fujii Masao , Postgres hackers 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 Tue, Feb 28, 2023 at 11:29=E2=80=AFPM Nathan Bossart wrote: > On Sat, Feb 25, 2023 at 11:00:31AM -0800, Andres Freund wrote: > > TBH, I think the current archive and restore module APIs aren't useful.= I > > think it was a mistake to add archive modules without having demonstrat= ed that > > one can do something useful with them that the restore_command didn't a= lready > > do. If anything, archive modules have made it harder to improve archivi= ng > > performance via concurrency. > > I must respectfully disagree that this work is useless. Besides the > performance and security benefits of not shelling out for every WAL file, > I've found it very useful to be able to use the standard module framework > to develop archive modules. It's relatively easy to make use of GUCs, > background workers, compression, etc. Of course, there is room for > improvement in areas like concurrency support as you rightly point out, b= ut > I don't think that makes the current state worthless. I also disagree with Andres. The status quo ante was that we did not provide any way of doing archiving correctly even to a directory on the local machine. We could only recommend silly things like 'cp' that are incorrect in multiple ways. basic_archive isn't the most wonderful thing ever, and its deficiencies are more obvious to me now than they were when I committed it. But it's better than recommending a shell command that doesn't even work. --=20 Robert Haas EDB: http://www.enterprisedb.com