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 1nFjbz-00047e-2v for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Feb 2022 21:25:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nFjbx-00076X-Mw for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Feb 2022 21:25:49 +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 1nFjbx-00076N-Ce for pgsql-hackers@lists.postgresql.org; Thu, 03 Feb 2022 21:25:49 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nFjbq-0000ys-Pd for pgsql-hackers@postgresql.org; Thu, 03 Feb 2022 21:25:48 +0000 Received: by mail-pj1-x102b.google.com with SMTP id r59so3591636pjg.4 for ; Thu, 03 Feb 2022 13:25:42 -0800 (PST) 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=UUEgIQsnUEofqo/nIiKvCShhJ4JUVBHt5bbDjk3DKzc=; b=SkASsVFxdh3ZLIY4yHwoAFWWS8MU559i+3sljRGDX+jNsie9LjUtFNrklz+AK9FFT6 v4PI+5LyczbJmsIoDHvmxRiasNOT72dRqY1Vb0rCJ7M9WfOIKbctynJ0JX56K1r9Ggm9 IAB/fQx+LJiPKNXJ8ijQcZerHwS6tE4IuWpZ7ZGabQSy/EmxACjTk0mVPg0zujMj61bh 5S8GouShyyyKASaSLmhWdo5NejJR/8r2FT8M5id4vNW15ZQmTso7KkjIFYgS3PDb06hx t/SEtnEAzT6fAjllW+IjiJGJwLOL2dn0EMMiUr3SD8CHAPrsKqMMnTMnHs0mqMIFsQe3 mGZw== 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=UUEgIQsnUEofqo/nIiKvCShhJ4JUVBHt5bbDjk3DKzc=; b=lNaOqiaYfXXw7UNHl4aB94Ed6bP+kCexiZMMFeatsUloGnVBhj/ZEtqJvklZ7f7aXc LaG3T1p+wd3Z/0E4NAi7JBQo5xvpxAqmkoC4CvBCqJKsRmzQg9UlTF6QSi6lHrc+Rrcl 7qK6XkLbArQ+J4LVNsHZOqzGw+JMhqLPMjqJBb/aOwY+w4KCpBwXtYgJEdIC+spwrh17 NuSmFxxshT4gGA/qF5Ctmwk9YEzDWX/ifcSdxuE2TrBlkcUeowyhaxrj6jGTbwS+yZ9N QR3rVQRjM1+FU9/0VDM6JT0NPfELoeyXvXJlHyctibfebKWMwY/WVGhXCDseDq6ruRY5 e8fg== X-Gm-Message-State: AOAM530IbdXcKGrFJxiQKUcObfzj7pY78TQRZkthfagQ92Nsprc8PN4q fq1SXtQ4VmGzk+aKxtxKZYU= X-Google-Smtp-Source: ABdhPJw2qwUqhEyh+fDYoqHeIhs/l+/X54in/NkOPPy0kuCwM9TFrMJTWUFBmAWHcvDGI9JADSJLAA== X-Received: by 2002:a17:903:124e:: with SMTP id u14mr37075591plh.146.1643923541653; Thu, 03 Feb 2022 13:25:41 -0800 (PST) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id a13sm24499316pgv.27.2022.02.03.13.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 13:25:41 -0800 (PST) Date: Thu, 3 Feb 2022 13:25:39 -0800 From: Nathan Bossart To: Robert Haas Cc: "Bossart, Nathan" , David Steele , Fujii Masao , "pgsql-hackers@postgresql.org" , Michael Paquier , Magnus Hagander , Stephen Frost Subject: Re: archive modules Message-ID: <20220203212539.GA1082940@nathanxps13> References: <20220130003148.GA459597@nathanxps13> <20220130050141.GA582209@nathanxps13> <20220201013608.GA737363@nathanxps13> <20220202224433.GA1036711@nathanxps13> <20220203192747.GA1080581@nathanxps13> <20220203211121.GA1081379@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 03, 2022 at 04:15:30PM -0500, Robert Haas wrote: > On Thu, Feb 3, 2022 at 4:11 PM Nathan Bossart wrote: >> On Thu, Feb 03, 2022 at 04:04:33PM -0500, Robert Haas wrote: >> > So apparently we need to either skip this test when wal_level=minimal, >> > or force a higher wal_level to be used for this particular test. Not >> > sure what the existing precedents are, if any. >> >> The only precedent I've found so far is test_decoding, which sets wal_level >> to "logical." Perhaps we can just set it to "replica" in >> basic_archive.conf. > > Yeah, that seems to make sense. 024_archive_recovery.pl seems to do something similar. Patch attached. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com --h31gzZEtNLTqOjlF Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fix-basic-archive-test.patch" diff --git a/contrib/basic_archive/basic_archive.conf b/contrib/basic_archive/basic_archive.conf index b26b2d4144..db029f4b8e 100644 --- a/contrib/basic_archive/basic_archive.conf +++ b/contrib/basic_archive/basic_archive.conf @@ -1,3 +1,4 @@ archive_mode = 'on' archive_library = 'basic_archive' basic_archive.archive_directory = '.' +wal_level = 'replica' --h31gzZEtNLTqOjlF--