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 1nkq9a-0004D0-Ey for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Apr 2022 16:41:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkq9Y-00025b-GU for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Apr 2022 16:41:04 +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 1nkq9X-00025S-EG for pgsql-hackers@lists.postgresql.org; Sat, 30 Apr 2022 16:41:04 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nkq9P-00029i-Qz for pgsql-hackers@lists.postgresql.org; Sat, 30 Apr 2022 16:41:03 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 4D3CF5C00BB; Sat, 30 Apr 2022 12:40:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 30 Apr 2022 12:40:52 -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=1651336852; x=1651423252; bh=9IFyJbg/rE+PiZvtg2lJg8dkI7dZ ramov/n+49WqSWg=; b=Yhh6j9B1V3enP5GuQl3ZHGNrKBlwGLZK1qa0SH5VQJIZ evJoLVZaV/wazD5DrXkwWtpkV163gja7fhFHxwqxqTXcgqO64hwJOFca/HyLRic8 Qo4Xv+NTicaIIL7OZsF8BUZJQRj4qLOYBVg0SHDMDd3k9mVz5GpUatPwdro09zm+ Ar7iVyFtL4X+xEPiavGgGZvwttO5TQbaSxhNo7pxvpQAoUCftMVoESNcTFfVEVPX r+N1BH2FTVEEPisK20KgdJrt+Uu1xSkQGH05tuH7gOggBTV+yHQKLZLH7Qb/EfPw Y1SY3610HyJk2Yb8rU+xg/QdXbLb0vAlsgt54nzSCQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddugddutdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 30 Apr 2022 12:40:50 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B84332A0D0D; Sat, 30 Apr 2022 18:40:46 +0200 (CEST) Date: Sat, 30 Apr 2022 18:40:46 +0200 From: Alvaro Herrera To: Amit Kapila Cc: Tomas Vondra , Peter Eisentraut , Pg Hackers Subject: Re: bogus: logical replication rows/cols combinations Message-ID: <202204301640.p6bkp2n6chqk@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: > I agree with throwing errors for obvious/known bogus cases but do we > want to throw errors or restrict the combining of column lists when > row filters are present in all cases? See some examples [1 ] where it > may be valid to combine them. I agree we should try to combine things when it is sensible to do so. Another case that may make sense if there are two or more publications with identical column lists but different row filters -- in such cases, as Tomas suggested, we should combine the filters with OR. Also, if only INSERTs are published and not UPDATE/DELETEs, then it might be sensible to combine everything, regardless of whether or not the column lists and row filters match. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Tiene valor aquel que admite que es un cobarde" (Fernandel)