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 1sYnHO-00E6td-8B for pgsql-general@arkaria.postgresql.org; Tue, 30 Jul 2024 13:52:42 +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 1sYnHM-00AJ1P-A0 for pgsql-general@arkaria.postgresql.org; Tue, 30 Jul 2024 13:52:40 +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 1sYnHL-00AJ1H-V3 for pgsql-general@lists.postgresql.org; Tue, 30 Jul 2024 13:52:39 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sYnHI-002Fqj-Gv for pgsql-general@lists.postgresql.org; Tue, 30 Jul 2024 13:52:39 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-52f04b3cb33so10345719e87.0 for ; Tue, 30 Jul 2024 06:52:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722347555; x=1722952355; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=MvQ3U3IuRDmAD4KMN/U8d3D+eVUJnHCh5X3ueY6cwUw=; b=DTvLYrZ+9eKyS7tL0LmpwfnGWz10zBwKZpUl3lyWUPLPqg2PhGqE0BppXmpccdc+Yt LVmcWFS2WIb6nVFLa2Om2EBO20wI167HPNEzKJ8souLkOE08cWJ7MLSgHvoAjp/uE0N9 chZB7E3KLYdjJBP48NqU/YNyQA9AtVUGvXgkZc1egcBOmqR9AomDCcrqqyj1LnoPKZQl zIDLjQ4pTglTFCvdezpXt0avrxxamWRg5T83HXNc2/Pzmaiqqh+SkFrjrvrqgUzdb+LR 3MggsQsdbdHhWDNGdvVauAIQSCVS+murUnmARmYOrx09v1fektfhecf+N8aVBI2mmpGX gOGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722347555; x=1722952355; h=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=MvQ3U3IuRDmAD4KMN/U8d3D+eVUJnHCh5X3ueY6cwUw=; b=opC78Bj4Q4pS47AZ4q+gN7ZCYBq3C/KMUejkRE9CDfchYPwyMAry6x/kgO7GWrXnbE 2vYFBowpMW0E6+fHaZbo920oF/ZOwNqlQe29TeCa3tCzl0Okhg6c4IelR46ryl1oEh7x HzmckxVtakmd2exCGtpHFkavGqpux/rAGhkW7AQECNVZV+F+P8SGxw/vHSeZQma2vtC4 JIieVt2BKd1OVVAwZFwUXuHoPcfsBN76EK+Qq0dAtASA2eiBNdQ2Tb2arzqhzO20EZOh dtVU0JGi+n2lmX8I8i7wcUsMlEwmMvmgf7CApZBCN4bIPWjQKgXEmRA6wBI9JubEluw+ +LmA== X-Gm-Message-State: AOJu0YxtVOp5XEqbA6j/U2EiJANdipFRWPHRf/Iv2uyJ6bwTOndMea2N 02+EFe5QbWpFo72XXgF0H42Tn3drviC0Jdz1tQ2BmGD4kjzj4/3KGDAWEBb9lJ9x9GdFqvuQ9CL MdoeMEXh9NFp757UMk8irzhRuIomJvUaz X-Google-Smtp-Source: AGHT+IEpchYJzW05Mixl4yjapEA+CfN+xbdv38i10JF+EaeRkuCrQt1elRRTR5jAL/RAioF4bMxAdFUkS0FPEhn16s4= X-Received: by 2002:ac2:5e76:0:b0:52c:df83:a740 with SMTP id 2adb3069b0e04-5309b299a60mr6591534e87.30.1722347555230; Tue, 30 Jul 2024 06:52:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Koen De Groote Date: Tue, 30 Jul 2024 15:52:23 +0200 Message-ID: Subject: Re: Understanding conflicts on publications and subscriptions To: PostgreSQL General Content-Type: multipart/alternative; boundary="000000000000359dc3061e774a57" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000359dc3061e774a57 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Just to add a thought: If the subscriber gets a bit of logic to say "Something went wrong, so I'm automatically stopping what I'm doing", it sounds logical to give the publisher the same ability. On Tue, Jul 30, 2024 at 3:47=E2=80=AFPM Koen De Groote = wrote: > Reading this document: > https://www.postgresql.org/docs/16/logical-replication-conflicts.html > > There is talk of the "disable_on_error" option when creating a > subscription. > > The conflicts this applies to, I am assuming are only conflicts caused on > the side of the subscription? > > As an attempt to apply new data doesn't work, because of modifications > made since the initial copy, is that correct? > > > I'm a bit confused by errors on the side of the publisher. Reading this > document: https://www.postgresql.org/docs/16/sql-createpublication.html > > It states: > > > The tables added to a publication that publishes UPDATE and/or DELETE o= perations > must have REPLICA IDENTITY defined. Otherwise those operations will be > disallowed on those tables. > > This is not related to the subscription option "disable_on_error", I take > it? > > Because it sure would be nice if there was a way to do a similar thing fo= r > the subscription, disabling it on error. > > Am I getting this right? "disable_on_error" is only on subscription, and > errors on the publishers related to replica identity are not tied to that= ? > > Thanks for your time. > --000000000000359dc3061e774a57 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just to add a thought:

If th= e subscriber gets a bit of logic to say "Something went wrong, so I= 9;m automatically stopping what I'm doing", it sounds logical to g= ive the publisher the same ability.

--000000000000359dc3061e774a57--