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 1o9W9V-0004Cb-OR for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jul 2022 18:23:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o9W9T-0001rB-KV for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Jul 2022 18:22:59 +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 1o9W9T-0001lo-25 for pgsql-hackers@lists.postgresql.org; Thu, 07 Jul 2022 18:22:59 +0000 Received: from mail-oa1-x35.google.com ([2001:4860:4864:20::35]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o9W9Q-00077U-KW for pgsql-hackers@postgresql.org; Thu, 07 Jul 2022 18:22:58 +0000 Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-10c0119dd16so15378092fac.6 for ; Thu, 07 Jul 2022 11:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=B6eSwg2z+w8JJY9jD/hRGJNuvkLYUjgCsP8XX8jAqpM=; b=SnTyxLALmPH0kEUPaK/8m/KwYD7szPHIYlCBVBrXh99hyHQRPv0HpBo6O+pFiaGFNI lVmcZ28pCK1roL+0Ou0Fz4A3NsKNAZjFsF4vaS8PsK96swQBp4I9hPC+cTs62xIvzyBR KyoCrNKQ3QXXRVmJdDpDOJzSKJ3G/YjmYnfhMY9DVTjHa6FraEIxYJWCd+a0CFv7WlVx fqbX8qygtYmzTVJfNFZ+bwqKuVv92o2UxWDvFLBhJuXgz0bNXg4vCmt2qO2b7MQp8FSd iNHY806Fc9Ctxz9rMG+e5nXN5v1dQYLOLZVdZYgqr/zDOMXq1G9xL5sScM5HawbmF2hj IP+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=B6eSwg2z+w8JJY9jD/hRGJNuvkLYUjgCsP8XX8jAqpM=; b=l71FDyjjELUl6KX3w6QqUnGOUtt8QdkNsaQ7y7DckSz/zf97DZHkIlPlkxB8EHjCRB ZoTDAWEArNTlLyTZLRSElf7Eqjn4LNrVNxXmLcEQgk0nqPvVd77Xpi1AdAX4VehgYqMo p5cvHMC0r9pvJ5adKxGsr2d26PsY/cnws+LkbsHwwoGizytVOTSOSjRtCXJu61ejm9el q4lzOYib7vSb+P++fBryUqOTxgCCjAX0JmubfLxGwu5Vs3S9M3bfXzuOzOxmBq1Pm05c jYmC8HnLXKKhK8s/Jr7GojmMyMSVBPfdFN6/sfKEgGHYBYASy22f7MW4KANChL2EF+5y EpkA== X-Gm-Message-State: AJIora/Xr4xhDYTdBjyDrRXthHOWUyQjIPKayQl9C8/rvJFVUjVIhOxv tpcI4UJnTDa5kmDLU+RhRtc= X-Google-Smtp-Source: AGRyM1uIzt38h7nEZ4NJiWa/8AQPi35RaOnuR+wKoTapWhBGJY/feKUB0L+d03TDGBS1492L0izmXg== X-Received: by 2002:a05:6870:b526:b0:10c:3c8c:62c8 with SMTP id v38-20020a056870b52600b0010c3c8c62c8mr3012607oap.85.1657218176250; Thu, 07 Jul 2022 11:22:56 -0700 (PDT) Received: from nathanxps13 ([2600:380:c031:4fe1:d651:22c1:b379:2660]) by smtp.gmail.com with ESMTPSA id b9-20020a056830104900b0061c1c1cc648sm289935otp.58.2022.07.07.11.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 11:22:55 -0700 (PDT) Date: Thu, 7 Jul 2022 11:22:51 -0700 From: Nathan Bossart To: David Steele Cc: Robert Haas , Fujii Masao , Kyotaro Horiguchi , "pgsql-hackers@postgresql.org" Subject: Re: remove more archiving overhead Message-ID: <20220707182251.GA2255242@nathanxps13> References: <20220222173711.GA3852671@nathanxps13> <20220222195229.GA42988@nathanxps13> <20220224.141349.1809640551882183816.horikyota.ntt@gmail.com> <20220224175553.GA660690@nathanxps13> <20220407222327.GA1363808@nathanxps13> <768e6cb3-256d-9c0b-1797-62420ffca7ae@oss.nttdata.com> <17147b74-5465-9a7a-ae27-305d1200482c@pgmasters.net> <20220707161825.GA2205004@nathanxps13> <20220707175142.GA2254092@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220707175142.GA2254092@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jul 07, 2022 at 10:51:42AM -0700, Nathan Bossart wrote: > + library to ensure that it indeed does not overwrite an existing file. When > + a pre-existing file is encountered, the archive library may return > + true if the WAL file has identical contents to the > + pre-existing archive. Alternatively, the archive library can return This should likely say something about ensuring the pre-existing file is persisted to disk before returning true. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com