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 1sPGNX-003jgg-C7 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jul 2024 06:55: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 1sPGNV-00EM92-71 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jul 2024 06:55:37 +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 1sPGNU-00EM8u-U2 for pgsql-hackers@lists.postgresql.org; Thu, 04 Jul 2024 06:55:37 +0000 Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sPGNP-000KO6-9W for pgsql-hackers@lists.postgresql.org; Thu, 04 Jul 2024 06:55:36 +0000 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-25e0971ab06so164858fac.1 for ; Wed, 03 Jul 2024 23:55:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720076130; x=1720680930; darn=lists.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=Sypgsxzmhk9A4hVtIQJD/sjwMVpce+eJ7OsCDnONlb0=; b=hBmmctNlFkqOsVw+R1jUek+X5uaPwZyVn972lZcurNtl97ehjRij7eaIEOn+pxuUP3 N1l+QY4YzwApIQSsWuXl87AYDeOcZw98ueZ4GhvQJJFt7ufSCL1yOG3vTfSxCkx4nScx GWSHCN8CntetTBOxhLs50B8zpvug8pgtBl1k5gI71C93Z1b6xOYiYGKV0wCKfmiYLKBZ x12PcagRXO7G3vJGPirJ/ddPTMU9gFLJsz27CegAP+JoMUBYtg83J/HtjTZFFxqfUEG6 /58xRgz8odIQVWk9bB867CxxDB8FEGNUoJwTyzL2eRR266L0AoU16iVDQi4h7fAn5TUi 1i9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720076130; x=1720680930; 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=Sypgsxzmhk9A4hVtIQJD/sjwMVpce+eJ7OsCDnONlb0=; b=aKofbEpG/S1gGytJzoSS4eP54IgMVUa1Fl6RtGk8wEJ/IGdFbhwUmLydwwkITIo5h9 btcupO8P6kmJTzRu0US7op7YEcFLVPpqpzj4ZOLXDlCLpDwGbwO2uG3ErO9SE63teu+3 AiGFafL8qVbf1OgmDJ3vLVFVtFFALZr4Pjpqu3kAyO6eUTx/bVduMqJtlr0LTzXiXKsV v52YHVDgoWo2h1HQQYbbAtePq8/pos2F+LDFgz4djFluU+4n4MPb/n0cN8jC86GfxzIg yNhlPqWTMqMPFhkMGXslgBy4wymnPKg0/XL5lcOQfMiz6nrwJesDCKhaCyXKWrMIVTyU DiPQ== X-Forwarded-Encrypted: i=1; AJvYcCXYxBeC2yndDH3Af9Jpa7ykiQSWsvxnPGP4iTUeZjS4wrDtbVETJj3H82VQqeIMlk9INiNaL3agH1zI7PpKj3y5ME5R88fw0MA6X3ptKk06QLoC X-Gm-Message-State: AOJu0YynPAH/V824KjBXIHiL4+Sfp6PcbDmYRBlFQaW1bY1h2zVM2mwp WaY6FMZ3Lt2bOTL9MbVh0O8bkVB4HX32XBfNzEJVjYgZYOxcl9Vmmu0FxiekmdmqgYNPuYnBYyS YT9/mr7YDrbk6NHoi9O1KkB4PsZM= X-Google-Smtp-Source: AGHT+IGlvvfspT6H9Erp3kpM4Y0C3m5EPHrQU2hNsnU7mlCigM+xPPbhJe/oiOyb5bP2qX/wnSKZVVL4z4FtRPoILW8= X-Received: by 2002:a05:6871:688:b0:25d:fe73:28af with SMTP id 586e51a60fabf-25e2f79b844mr208559fac.24.1720076130555; Wed, 03 Jul 2024 23:55:30 -0700 (PDT) MIME-Version: 1.0 References: <8fab8-65d74c80-1-2f28e880@39088166> <99df2-65d8d200-1-63c26880@172687752> In-Reply-To: From: Amit Kapila Date: Thu, 4 Jul 2024 12:25:18 +0530 Message-ID: Subject: Re: Slow catchup of 2PC (twophase) transactions on replica in LR To: "Hayato Kuroda (Fujitsu)" Cc: Ajin Cherian , =?UTF-8?B?0JTQsNCy0YvQtNC+0LIg0JLQuNGC0LDQu9C40Lk=?= , Heikki Linnakangas , "pgsql-hackers@lists.postgresql.org" 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, Apr 22, 2024 at 2:26=E2=80=AFPM Hayato Kuroda (Fujitsu) wrote: > ``` > > It succeeds if force_alter is also expressly set. Prepared transactions w= ill be > aborted at that time. > > ``` > subscriber=3D# ALTER SUBSCRIPTION sub SET (two_phase =3D off, force_alter= =3D on); > ALTER SUBSCRIPTION > Isn't it better to give a Notice when force_alter option leads to the rollback of already prepared transactions? I have another question on the latest 0001 patch: + /* + * Stop all the subscription workers, just in case. + * Workers may still survive even if the subscription is + * disabled. + */ + logicalrep_workers_stop(subid); In which case the workers will survive when the subscription is disabled? --=20 With Regards, Amit Kapila.