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 1nkjRe-0005sU-7h for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Apr 2022 09:31:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkjRd-00024u-0C for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Apr 2022 09:31:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkjRc-00020a-MA for pgsql-hackers@lists.postgresql.org; Sat, 30 Apr 2022 09:31:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkjRV-0005gW-Hs for pgsql-hackers@lists.postgresql.org; Sat, 30 Apr 2022 09:31:16 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 750CD5C012C; Sat, 30 Apr 2022 05:31:08 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 30 Apr 2022 05:31:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1651311068; x=1651397468; bh=SmPJGazeTk7dai/NlDv8XoZqDGVk KE5qE8ZhsPPGShU=; b=CaZzgYaf99bdkYG8MY51ELRq/x/FQsAE9BxZEj6JBvF4 A0DRSwB2nIZ3yovJuIumloItGPUmgt+3fg9bexYo7rLBXRGN3wqi9dNdBR0kcdKO 5v5FSgvv6HmHlgElXlZ+FLnTRdXOQWJ+0DMVzKcFz1j2uE9eNASWR9oa5rWLJVD+ g6MYKO0gCfwrgLqUyabEoxITb26XCXmXQUop35XTThmheN75weM51GvMaxwQz7fB G1LHwBdi5/Ri3uo0CeFcDFD1ke8yz+mA+zSMedTb/sUVkBA7NJxPzQavWKkHF1yq vj8pldxe7MJmEnScBXlg6yeQxILF08/2ERKLBanoiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddugddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 30 Apr 2022 05:31:07 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 82D632A0D07; Sat, 30 Apr 2022 11:31:04 +0200 (CEST) Date: Sat, 30 Apr 2022 11:31:04 +0200 From: Alvaro Herrera To: Amit Kapila Cc: Tomas Vondra , Peter Eisentraut , Pg Hackers Subject: Re: bogus: logical replication rows/cols combinations Message-ID: <202204300931.um766ighsghq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Apr-30, Amit Kapila wrote: > On Sat, Apr 30, 2022 at 2:02 AM Tomas Vondra > wrote: > > That seems to deal with a circular replication, i.e. two logical > > replication links - a bit like a multi-master. Not sure how is that > > related to the issue we're discussing here? > > It is not directly related to what we are discussing here but I was > trying to emphasize the point that users need to define the logical > replication via pub/sub sanely otherwise they might see some weird > behaviors like that. I agree with that. My proposal is that if users want to define multiple publications, and their definitions conflict in a way that would behave ridiculously (== bound to cause data inconsistencies eventually), an error should be thrown. Maybe we will not be able to catch all bogus cases, but we can be prepared for the most obvious ones, and patch later when we find others. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "En las profundidades de nuestro inconsciente hay una obsesiva necesidad de un universo lógico y coherente. Pero el universo real se halla siempre un paso más allá de la lógica" (Irulan)