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 1rjdUJ-006ppL-QK for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Mar 2024 11:06:36 +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 1rjdUH-00CGEq-GH for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Mar 2024 11:06:33 +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 1rjdUH-00CGEg-6o for pgsql-hackers@lists.postgresql.org; Mon, 11 Mar 2024 11:06:33 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rjdUD-003wKX-Nd for pgsql-hackers@postgresql.org; Mon, 11 Mar 2024 11:06:32 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-21f0c82e97fso2173579fac.2 for ; Mon, 11 Mar 2024 04:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710155190; x=1710759990; darn=postgresql.org; 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=yaCMRx15ev9OmarBO1+PoLbfKdAYchG8AXeWB1Pl9yA=; b=ZtmrtW9JP76izCrGt10uxIJIvWWt/rCcsl+2rOG6mS0oLJSTvsbxmRzffBHr7gNcnH rJZXxkWaYWSWNbLRUby3rV0XgJzVbA2H6yJFjTBgt140C3LQR9DIBAcAGHM+m3be9FNq rGlXHqb1EHaaQu28FCNEaYb1d3BhBf7ZF17hn+y1Nx8J2oDbf5vTqyVP3k5ZErIiUKAA Cgr187z1DdVw8Im8LMqaccdkbouhcgOl8tzeMbFwj2JY3c58dbPwS4sjtB0S4AkKtVTF qLIJK7Lut+t5WAfgXDfe4/AXSHdqv7feLHD6S5wTPlNGdas8x9Ove8kf4WOcalA6joew 71Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710155190; x=1710759990; 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=yaCMRx15ev9OmarBO1+PoLbfKdAYchG8AXeWB1Pl9yA=; b=QRtbxTUR3t0EGlg5nABVG684yz93CB+J5FuU0uzba36XQRDKXumxo0aHqCfqFTcmWr Yc4Ht2bewAvq9MsGSMeut8qFxFDEvyfuAxCGI2ZpofdcL5Wm9gRlLq65ytl04oybqvme GHG+w0RIRmU6W1KhS2LMWcq67zsXqvN/H52/o1aDIz7HqmSfuIsMYXBEHbHy+XYwy5OT 3ZvuBYu8rI4BpToCYmQluRg6ylAHhM8csbulpvKgs6MxLmvHZ13Y2i07OR3pSPhdPW+Q hITVvmQQf0ewaH0/MIKdAiCZpsax47gfAgfnJ2GOVOMymJkzyTy4B9Pjoz0ZqZyi46Dj 26vg== X-Forwarded-Encrypted: i=1; AJvYcCXeAR+vG5GoNPC4S9dhlDJJ2wxu7ZRkFjrzi+q+IYGlfYINy6P1CeTH2IwTxlD1YquipFX+BEWHl5LSAMpmctFD0DIVgybFx0slDZvD X-Gm-Message-State: AOJu0Yy50siYDa4RtBYYszOUPgFbhYESaAYBGBT0aNHDifXz2aEW/mdy LCLexa9o4hqLuIJF9kNMLTg2YNEecuuOXGzV+MqpTrFiNk8L8r5PJ8AOzsky31e9kryytdhrzIt 2tW9sKFSiSxV35pPgBnW3VlxjZSM= X-Google-Smtp-Source: AGHT+IHQu8/MwuaHg+JzEfhCi3qmh28TXT+LA331gHn/DKs4OpdolYYaI+CJJs2RA8KW8ZnFJb/RFar3vNkietdS67E= X-Received: by 2002:a05:6870:470c:b0:221:c7bc:99a3 with SMTP id b12-20020a056870470c00b00221c7bc99a3mr5537357oaq.5.1710155190219; Mon, 11 Mar 2024 04:06:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Mon, 11 Mar 2024 16:36:18 +0530 Message-ID: Subject: Re: Regardign RecentFlushPtr in WalSndWaitForWal() To: shveta malik Cc: Matthias van de Meent , pgsql-hackers , Robert Haas 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 Mon, Mar 11, 2024 at 4:17=E2=80=AFPM shveta malik wrote: > > On Sat, Mar 2, 2024 at 4:44=E2=80=AFPM Amit Kapila wrote: > > > > Right, I think the quoted code has check "if (!RecoveryInProgress())". > > > > > > > But apart from that, your > > > observation seems accurate, yes. > > > > > > > I also find the observation correct and the code has been like that > > since commit 5a991ef8 [1]. So, let's wait to see if Robert or Andres > > remembers the reason, otherwise, we should probably nuke this code. > > Please find the patch attached for the same. > LGTM. I'll push this tomorrow unless I see any comments/objections to this change. --=20 With Regards, Amit Kapila.