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 1rrcc6-001hA7-Hw for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 11:47:39 +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 1rrcc5-007m7C-34 for pgsql-hackers@arkaria.postgresql.org; Tue, 02 Apr 2024 11:47:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrcc4-007m73-Ca for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2024 11:47:36 +0000 Received: from m16.mail.163.com ([220.197.31.2]) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rrcbv-000BnC-QF for pgsql-hackers@lists.postgresql.org; Tue, 02 Apr 2024 11:47:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version: Content-Type; bh=yjG/t2EAoLHv38sE39fdFDPszVD8qwTLJN796+hwy+g=; b=l3/P+x8AhU+pSHjaptdjxgOOZ3W2gip5fk3xhkmnu8ebyyF5fRCUYT/1f3lmvk DZwswguqlA93fA2g1sOU4pke88GgrhcI5c1ECdQBfjAIgb9BFl0J++w6gLFXB3Hx 4konkuAv3XdpsXFZpM8z6ZgWIzUYXwBRdwTmfHIElJxBs= Received: from 8235eee8a2a0 (unknown [140.205.118.70]) by gzga-smtp-mta-g2-3 (Coremail) with SMTP id _____wDnF6888AtmAzEBBA--.37762S3; Tue, 02 Apr 2024 19:47:09 +0800 (CST) References: <5358d911a08ef2952b1e9f74062426ee@postgrespro.ru> <88449be3-93e8-4d78-a0d8-c37e4cf26850@app.fastmail.com> <8aec133e-5d7f-4fa1-8223-257647dd1ccd@app.fastmail.com> <432592e4d09341d41bf5cad1df26b3f3@postgrespro.ru> <87le5wa1dw.fsf@163.com> <87h6gk9nvc.fsf@163.com> <6eb8c9f22b075964f502080dadc16cb2@postgrespro.ru> User-agent: mu4e 1.10.7; emacs 29.1 From: Andy Fan To: Bharath Rupireddy Cc: Kartyshov Ivan , Alexander Korotkov , Euler Taveira , Thomas Munro , Peter Eisentraut , Amit Kapila , Dilip Kumar , Peter Smith , pgsql-hackers@lists.postgresql.org Subject: Re: [HACKERS] make async slave to wait for lsn to be replayed Date: Tue, 02 Apr 2024 19:43:46 +0800 In-reply-to: Message-ID: <87msqcc7gj.fsf@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: _____wDnF6888AtmAzEBBA--.37762S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrtrWfJr4DAFy3JFWDGw45ZFb_yoWftrXEg3 98JrZFy3y3Gr4fJa1qkrWxArykWayvgF10qr1kZr13t348ArW5ursY939Ika15Xr10qry7 Cr48XwsFkw47ujkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUD3ktUUUUU== X-Originating-IP: [140.205.118.70] X-CM-SenderInfo: x2klx3xlid0iqsrtqiywtou0bp/1tbiNhq0U2XAk0gOEgABso List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bharath Rupireddy writes: > On Tue, Apr 2, 2024 at 3:41=E2=80=AFPM Kartyshov Ivan > wrote: >> >> 8 years, we tried to add this feature, and now we suggest the best way >> for this feature is to commit the minimal version first. > > Just curious, do you or anyone else have an immediate use for this > function? If yes, how are they achieving read-after-write-consistency > on streaming standbys in their application right now without a > function like this? The link [1] may be helpful and I think the reason there is reasonable to me. Actually we also disucss how to make sure the "read your writes consistency" internally, and the soluation here looks good to me. Glad to know that this patch will be committed very soon.=20 [1] https://www.postgresql.org/message-id/CAPpHfdtuiL1x4APTs7u1fCmxkVp2-ZruXcdC= fprDMdnOzvdC%2BA%40mail.gmail.com=20 --=20 Best Regards Andy Fan