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 1ozljJ-00058S-NT for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Nov 2022 21:31:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ozljI-0005mA-K1 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Nov 2022 21:31:56 +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 1ozljI-0005m0-Aj for pgsql-hackers@lists.postgresql.org; Mon, 28 Nov 2022 21:31:56 +0000 Received: from mail-yw1-x112f.google.com ([2607:f8b0:4864:20::112f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ozljD-0003Y5-U2 for pgsql-hackers@lists.postgresql.org; Mon, 28 Nov 2022 21:31:55 +0000 Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-381662c78a9so119564437b3.7 for ; Mon, 28 Nov 2022 13:31:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FjyBhLGTRDBreCNnpQVRhD235TnIovPNLHIk65+BJ9I=; b=R8pARORb7QiDuWeqDkb8SrfzO+H37BfGiaMTf7Mc9N1xEFfs0/G/xaegOLRGQq5Xr+ WBnUlvKqcujCGuKjAjnkRUWzjHBNfPV0zheOveQkdV2JdhSQ+vYfXFqSRqoTD+ypce1t 3icj+Gbp71PWzzCqAa5Y8tZrABChZUZ+XzrPG0uqo0r/hoHTR/LYZcJ22z9ScAVcVVK8 EuhU2JQb8Vf4HhcqGHVPTZQQ/CXkmkJoFcTXyXPfIh8the4eZcoIybTvW+VDfqDhlDPD bK8x+ewvK4o9lkwCpRH4vi7f8s3fR+9nLDE8B4M4kyNGYZqCxlXoOsf/vmorzwP6WaAS agbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=FjyBhLGTRDBreCNnpQVRhD235TnIovPNLHIk65+BJ9I=; b=qem1Z7G2GpAsUZF3bxvYgb/kFdGK81273bWZ2TY5JQneKFffgQGjOTMzHt50x4qkvg mjmN50Ri734bDLpCeszxE28yDrYpfYSLrscdv+ArY3X8bNEcwMw3liJiC+EtRq0SVpFO aR8AWE+LRRmRb2mLN5Vt4r2W0L6xC34Uij087FjQe+J7ec8jqTzlyeWVyb6iIXujTxCY WTI1c0/1lC3Y6gS4MktYf54MWqVw66Pb6pGLXb2cdNWWSaLpqxe/VlK/TZMYVgTOYUlY q56sc0DrgGwqeENob1rs+VVAWIKQ96cXb6JR5uBpQfabAsgycUjH8pB6ZdYs6p65ayMp 7CCQ== X-Gm-Message-State: ANoB5pkJhaz2al/nwa7dDpHpjFuHPPZMvtzxcDb26NqjCyrcN+E9EzSB D2PJ6Yr2ncDnVD0m4y1oophJob/oyErN3zPmm0g= X-Google-Smtp-Source: AA0mqf4+xa/eUVWOPgiKzw6Nh5mIsLHPL8nysrDH3IEpLdVdmwePaeOpZ0PMjeDUu/rNWeqWpJyWDUfSibqXssRmmZ4= X-Received: by 2002:a0d:c603:0:b0:360:a689:6783 with SMTP id i3-20020a0dc603000000b00360a6896783mr33011483ywd.104.1669671111228; Mon, 28 Nov 2022 13:31:51 -0800 (PST) MIME-Version: 1.0 References: <9290b55b6ae2b04e002ca9dadadd1cca09461482.camel@cybertec.at> <20220805.114916.994654810780821553.horikyota.ntt@gmail.com> <20220809.161236.1486509314201074910.horikyota.ntt@gmail.com> In-Reply-To: From: Andrey Borodin Date: Mon, 28 Nov 2022 13:31:39 -0800 Message-ID: Subject: Re: An attempt to avoid locally-committed-but-not-replicated-to-standby-transactions in synchronous replication To: Bruce Momjian Cc: Bharath Rupireddy , Kyotaro Horiguchi , Laurenz Albe , PostgreSQL Hackers , SATYANARAYANA NARLAPURAM Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Nov 28, 2022 at 12:59 PM Bruce Momjian wrote: > > You can prepare a patch, but it unlikely to get much interest until you > get agreement on what the behavior should be. We discussed the approach on 2020's Unconference [0]. And there kind of was an agreement. Then I made a presentation on FOSDEM with all the details [1]. The patch had been on commitfest since 2019 [2]. There were reviewers in the CF entry, and we kind of had an agreement. Jeff Davis proposed a similar patch [3]. And we certainly agreed about cancels. And now Bharath is proposing the same. We have the interest and agreement. Best regards, Andrey Borodin. [0] https://wiki.postgresql.org/wiki/PgCon_2020_Developer_Unconference/Edge_cases_of_synchronous_replication_in_HA_solutions [1] https://archive.fosdem.org/2021/schedule/event/postgresql_caveats_of_replication/attachments/slides/4365/export/events/attachments/postgresql_caveats_of_replication/slides/4365/sides.pdf [2] https://commitfest.postgresql.org/26/2402/ [3] https://www.postgresql.org/message-id/flat/6a052e81060824a8286148b1165bafedbd7c86cd.camel%40j-davis.com#415dc2f7d41b8a251b419256407bb64d