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 1s9F3b-000leK-WF for pgsql-docs@arkaria.postgresql.org; Tue, 21 May 2024 02:16:53 +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 1s9F3b-006oXI-7R for pgsql-docs@arkaria.postgresql.org; Tue, 21 May 2024 02:16:51 +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 1s9F3Z-006oX9-RH for pgsql-docs@lists.postgresql.org; Tue, 21 May 2024 02:16:50 +0000 Received: from wfout6-smtp.messagingengine.com ([64.147.123.149]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s9F3S-001Dp5-Ny for pgsql-docs@lists.postgresql.org; Tue, 21 May 2024 02:16:48 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.west.internal (Postfix) with ESMTP id D70BD1C000F2; Mon, 20 May 2024 22:16:40 -0400 (EDT) Received: from imap49 ([10.202.2.99]) by compute2.internal (MEProxy); Mon, 20 May 2024 22:16:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eulerto.com; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1716257800; x=1716344200; bh=C3AIntTXGj rqkLpFGFTphYeRDcfwsO3pMYtm3GPl/kY=; b=KcLIDjR4/D3MOawv+7Vo6AT55c AE2gxvWteVFC7rW1CkA5s93adI4tYv+s6ZuzSGLIWg8gp/WvlYdqXbh742Vvtkaf rpnwgnev9vmaLmracy53foit10fEwGGichy7X2nbfcSMjoRNmr0GxgOZEQfiViKY wpvjljaT0MitKosPeX6gFk0QpNatTRQYhvwFqqCoETTX50Y8MJd4OEzp+ElmXRXJ zVBm+rw5xUBNC/c328oaOvlIUljc+Do6Ebn1FiHbVr8NeQLvjLUkQXkbg0D40OxT ub7n1XO94K1sV4/fA4Lk0wWYkGUBfp7rgtCAEhNf0aBFJ6mhLoxuo5DdmqjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1716257800; x=1716344200; bh=C3AIntTXGjrqkLpFGFTphYeRDcfw sO3pMYtm3GPl/kY=; b=I7gLNLOg1iLJTYy9Thv5SgyIaIWjpAznGaUBenLPH02Y iss1Znezv8adFobnQ8n/uixDK8zZ9a4EYDuWkm4aB6hcLkmGpk4rktBoISjaa/X7 GFQL9uKh2duMcYPchkvnOhyVHhcMHNZLHeTrrN60Y4DKljvD1kJo951aquMEeo9x VX0AICM6ZUKLmvvObWOAWduhdyi22ygGdgwMnLJ4qhIzCZfYcTU4sKDK1lj/uT4N Zev+FznVgHCCWLv0gl8vBEOwD3by2yyZ37wpuxDqrpXbHx2eAnK/nw6Lt6kiro/6 Jav355W5YSBZmm5CuznNsO+006b+Cb6u+EVdMxgVsw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeiuddgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfgfhulhgvrhcuvfgrvhgvihhrrgdfuceovghulhgvrhes vghulhgvrhhtohdrtghomheqnecuggftrfgrthhtvghrnheptdejffeiueeigeegheeiue dtveelteetjeeitdfgheehfeeukeevffetudejhfffnecuffhomhgrihhnpehpohhsthhg rhgvshhqlhdrohhrghdpvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvghulhgvrhesvghulhgvrhht ohdrtghomh X-ME-Proxy: Feedback-ID: i0c21471d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 2D75D15A0092; Mon, 20 May 2024 22:16:40 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-480-g515a2f54a-fm-20240515.001-g515a2f54 MIME-Version: 1.0 Message-Id: <009dbc5c-d229-4180-b425-632b681cba1d@app.fastmail.com> In-Reply-To: <171606508791.686.3944833439498473045@wrigleys.postgresql.org> References: <171606508791.686.3944833439498473045@wrigleys.postgresql.org> Date: Mon, 20 May 2024 23:16:17 -0300 From: "Euler Taveira" To: kdg.dev@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Unclear on Publication documentation page Content-Type: multipart/alternative; boundary=0a5dfa81189c4ece8be045ce6138ff44 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0a5dfa81189c4ece8be045ce6138ff44 Content-Type: text/plain On Sat, May 18, 2024, at 5:44 PM, PG Doc comments form wrote: > The page in question: > https://www.postgresql.org/docs/current/logical-replication-publication.html > > It says: > > "If a table without a replica identity is added to a publication that > replicates UPDATE or DELETE operations then subsequent UPDATE or DELETE > operations will cause an error on the publisher. INSERT operations can > proceed regardless of any replica identity." > > The text is ambiguous as to what is meant by "the publisher" in "will cause > an error on the publisher". I've personally never set up logical > replication, which is why I'm reading the documentation now. > > The question for me is: Does "the publisher" refer to a logical entity, > created by the "CREATE PUBLICATION " command? And further publication in the > publication<->subscriber model will not work anymore? Or does it refer to > the actual database itself, and will the functionality of the database be > impacted? As in: your live production database can now no longer process > UPDATE and DELETE statements so long as that publication exists/so long as > that publication is configured to publish that particular table? The first paragraph in the referred URL says The node where a publication is defined is referred to as publisher. And [2] defines the logical replication model: Logical replication uses a publish and subscribe model with one or more subscribers subscribing to one or more publications on a publisher node. Unless there is a documentation bug or you want to suggest changes to any part of the documentation, use pgsql-general for questions instead. [2] https://www.postgresql.org/docs/current/logical-replication.html -- Euler Taveira EDB https://www.enterprisedb.com/ --0a5dfa81189c4ece8be045ce6138ff44 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Sat, May 18,= 2024, at 5:44 PM, PG Doc comments form wrote:
The page in question:

It says:

"If a table without a replica identity is added to = a publication that
replicates UPDATE or DELETE operations = then subsequent UPDATE or DELETE
operations will cause an = error on the publisher. INSERT operations can
proceed rega= rdless of any replica identity."

The text i= s ambiguous as to what is meant by "the publisher" in "will cause
an error on the publisher". I've personally never set up logical=
replication, which is why I'm reading the documentation n= ow.

The question for me is: Does "the publi= sher" refer to a logical entity,
created by the "CREATE PU= BLICATION " command? And further publication in the
public= ation<->subscriber model will not work anymore? Or does it refer t= o
the actual database itself, and will the functionality o= f the database be
impacted? As in: your live production da= tabase can now no longer process
UPDATE and DELETE stateme= nts so long as that publication exists/so long as
that pub= lication is configured to publish that particular table?

The first paragraph in the referred URL says<= br>

The node where a publication is defined is = referred to as publisher.

And [2] defines t= he logical replication model:

Logical repli= cation uses a publish and subscribe model with one or more
subscribers subscribing to one or more publications on a publisher node= .

Unless there is a documentation bug or yo= u want to suggest changes to any part of
the documentation= , use pgsql-general for questions instead.

=


--
Euler Taveira

--0a5dfa81189c4ece8be045ce6138ff44--