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 1oi5fi-0006mT-M4 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Oct 2022 03:11:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oi5ej-00065w-3k for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Oct 2022 03:10:09 +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 1oi5ei-00065m-OB for pgsql-hackers@lists.postgresql.org; Tue, 11 Oct 2022 03:10:08 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oi5ef-0004Ua-To for pgsql-hackers@lists.postgresql.org; Tue, 11 Oct 2022 03:10:08 +0000 Received: by mail-pf1-x42a.google.com with SMTP id f140so12362768pfa.1 for ; Mon, 10 Oct 2022 20:10:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/VWK9yKGQ2VytuaT6H2kIHUHa0JPV5pXxoyg/QaBvyU=; b=nFnt/Ew/b8cvXlEUuCtddz6rlxHZ2fIuFR4vYe+uPMOL2dsFjQ+7NdfTAJON445KFA A0BjLZ9sdEOePNYFx/h3WPdSkRaRq8fKezA/QD2AdpCEjK6Igvz/yubggVF/cLsDqTrT PHiRhmrcb70fAnIHfsWo6872pKkQz0+bS2zPdKFT5fBIeXcpB1kL4+Uv57B2Ujm3GjCH P/DOHgFB7d7QSaXlrQGC94HdWLZ2e7f5kj3hPqpYgWvvG3XIvWfe5WB8lq2DzWgPi0LI op4uGIgkq/bbHP8iMlTJqlCrj1VazurNS3MEAYuYN4K4nuX1Th16MTSvJKvGL/7PsjKZ +7JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/VWK9yKGQ2VytuaT6H2kIHUHa0JPV5pXxoyg/QaBvyU=; b=49uZd1NV5KvLXbz1bwdZmTMd3cLWS34UT9FjZFTyfMye5/M0yrLzmdRP9ZZ58pznYB WdVg9W4dBKsn7o+xx8DXfFigpfiMMiOmIOfo9FtC/UJcCe9gL7VzV/f7g9q+2N6AixDJ jxOZL89wmpE1C4OFd/XWtnZJmebThlfiXkPcx21BtcbS1F2S4qB18FkGV540ZA6KbVid REapl0TbiZPg5wh3oFDv4XQP6XvQZKMCEwKDiEteIsb0lhkrMECrPB8AYtFAlaqpKcFp KMb6YfWZ86Cqzg77iRtRgIVpWIvSCR6tKeSaQeqi448pTnf60Qw/tNRFjAJY51RNNrgt 7KyQ== X-Gm-Message-State: ACrzQf1mtIZ9Em6oe/kXvIxaZOYInxdmOlQ/TLCCSFeH0QOZoTOMF3b9 KDTbvcOuXQD3QPhnmSUShL0= X-Google-Smtp-Source: AMsMyM6TfW57xqtkRjEq1T1n21v6q2c/+LkcVsnUVScB63k6DVdcXoGLLk2lT5e54lN+z1N+B3gRKw== X-Received: by 2002:a63:6a48:0:b0:43a:18ce:4e08 with SMTP id f69-20020a636a48000000b0043a18ce4e08mr19811803pgc.432.1665457803761; Mon, 10 Oct 2022 20:10:03 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id a4-20020aa795a4000000b0055de3e207c9sm7629094pfk.35.2022.10.10.20.10.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 20:10:03 -0700 (PDT) Date: Mon, 10 Oct 2022 20:10:01 -0700 From: Nathan Bossart To: Bharath Rupireddy Cc: Kyotaro Horiguchi , cary.huang@highgo.ca, pgsql-hackers@lists.postgresql.org, satyanarlapuram@gmail.com Subject: Re: Switching XLog source from archive to streaming when primary available Message-ID: <20221011031001.GC1322187@nathanxps13> References: <20220915.172207.1940822794018442836.horikyota.ntt@gmail.com> <20220916.153629.1624554489607517175.horikyota.ntt@gmail.com> <20221008215221.GA894639@nathanxps13> <20221009214725.GD900071@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Oct 10, 2022 at 11:33:57AM +0530, Bharath Rupireddy wrote: > On Mon, Oct 10, 2022 at 3:17 AM Nathan Bossart wrote: >> I wonder if it would be better to simply remove this extra polling of >> pg_wal as a prerequisite to your patch. The existing commentary leads me >> to think there might not be a strong reason for this behavior, so it could >> be a nice way to simplify your patch. > > I don't think it's a good idea to remove that completely. As said > above, it might help someone, we never know. It would be great to hear whether anyone is using this functionality. If no one is aware of existing usage and there is no interest in keeping it around, I don't think it would be unreasonable to remove it in v16. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com