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 1ryoCu-000bm0-Dq for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2024 07:35:20 +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 1ryoCr-000K68-OF for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2024 07:35:17 +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 1ryoCr-000K5u-EH for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2024 07:35:17 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ryoCk-0042Mk-UF for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2024 07:35:16 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-6150670d372so35615677b3.1 for ; Mon, 22 Apr 2024 00:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713771310; x=1714376110; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+EkBtF5UuFnuoJsB0Lul7BMm0mqXY5JXZIsPEwPUSZw=; b=Kj7VeaeF1MsGpxhyj6WtZflPVk2usVOqiGOYq47kxFYCmh2Qkpi1gbclsYSBokVF8Q 0VBvWqW+K1hRKLcaEa9YqszhioujJ++SP9QuewWXg1MlK+cNN5CDE338pypHW8bfoIIW w/OlS75I7CJwE1B7WP6aSmXPk0Z6X0HiYVQPiOEqDn82UfiCwahkd/wh8zR9/YzxP1W7 MJv010dtlZNxrSgdu8K0aV5cWSuIGXofzmu4MbI8T0sILB+cHtQzVBf+XJK02QeiPJJv JolTAqb3WwI8z76QnvDJeC++wr6Dn0jgUE6w061zsr9/3JPjvvECSiGSUcxunsXz3Krv X5Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713771310; x=1714376110; 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=+EkBtF5UuFnuoJsB0Lul7BMm0mqXY5JXZIsPEwPUSZw=; b=J/zSi1Owqj5rsNtkgTaPMpSvFd6mlQd6iGmG1ujY2HG6E83RYmc8vBSiOplp7z7Qaz 03xX9SbGKdqS6xi3dVZZ+QwF+YWh4M5YUI5y1ggoNtT9LUdZW4qNo8jr1m/M1osi6jj5 GFeCe55dFRWpWOc8jZdpkmbbSSZCaJBnyO08TdJre6ztYeCxlOq6AicwOuFcCB3NL81S 4zdeGng5+LzEDqFHhWeUn2/QNX+P/i3xxZ2wbnJjb64N/10LkkGLvTSA3/0Z9uJ0pj4x McmXMPh58KjpV/2YaEmp6hPaP6Thj9Uxo+14vzIbQ25pck0IEB8b8oe+OBPb1Uqsf8T9 9W5Q== X-Forwarded-Encrypted: i=1; AJvYcCU+c5/CZTch/Y/5VEk3otBNqXks1eEiOUd4JW1wdNQGT0W3p0W1U83Xup3/9HiC8kNbiijNBTtv+IsRqmm7IUjF5VQbB0TDy1L47ItRsIYDQ5gV X-Gm-Message-State: AOJu0YxAf/kcOGKWb52OoK5ZhYnY6pEyQveFsp3MsV031AMD3Yj5qoSN 9rVBw0LWg3TemCJFAEYAxDBFxTtIh8kwKUprY8cGet1jt4GK2Xc55K7kExXCB1YZG83j9omzGnn at9vbnHwT/nSTTYMKLgWMBavdI0c= X-Google-Smtp-Source: AGHT+IGt+FnzcshkyJVyMCLgck1/FV3xdtZEYMr1HtLI6+ggqDQGgQuUvAlqdwUR+/+KfWHZX3JuOxNkuLXjQay8m14= X-Received: by 2002:a25:8589:0:b0:dc6:b088:e742 with SMTP id x9-20020a258589000000b00dc6b088e742mr8258436ybk.8.1713771309790; Mon, 22 Apr 2024 00:35:09 -0700 (PDT) MIME-Version: 1.0 References: <8fab8-65d74c80-1-2f28e880@39088166> <99df2-65d8d200-1-63c26880@172687752> In-Reply-To: From: Ajin Cherian Date: Mon, 22 Apr 2024 17:34:58 +1000 Message-ID: Subject: Re: Slow catchup of 2PC (twophase) transactions on replica in LR To: Amit Kapila Cc: "Hayato Kuroda (Fujitsu)" , =?UTF-8?B?0JTQsNCy0YvQtNC+0LIg0JLQuNGC0LDQu9C40Lk=?= , Heikki Linnakangas , "pgsql-hackers@lists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000002586e50616aa7a8f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002586e50616aa7a8f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Apr 18, 2024 at 4:26=E2=80=AFPM Ajin Cherian wr= ote: > > Attaching the patch for your review and comments. Big thanks to Kuroda-sa= n > for also working on the patch. > > Looking at this a bit more, maybe rolling back all prepared transactions on the subscriber when toggling two_phase from true to false might not be desirable for the customer. Maybe we should have an option for customers to control whether transactions should be rolled back or not. Maybe transactions should only be rolled back if a "force" option is also set. What do people think? regards, Ajin Cherian Fujitsu Australia --0000000000002586e50616aa7a8f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable --0000000000002586e50616aa7a8f--