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 1njfMZ-0003K5-PP for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 10:57:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njfMX-0002d4-SJ for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Apr 2022 10:57:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njfMX-0002cc-Io for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 10:57:37 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njfMQ-0000Rz-Ue for pgsql-hackers@lists.postgresql.org; Wed, 27 Apr 2022 10:57:36 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id A0AAC3200919; Wed, 27 Apr 2022 06:57:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 27 Apr 2022 06:57:29 -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=1651057049; x=1651143449; bh=mMl28Md4UFLWrJQXT0RSdth4Wgoq MYnOBS4AfxRLtj8=; b=kawi1EanrunUtbfjb78DrqxbVHObQRQy62DYGWgeFWme 4uST7qzPgygT1HQMC7Rjc2MN/uOvjzVDOM2Y+zpPStSNTap90Z7SjtAT7LL7Hy0S EqE1i3LiXCy9vgsCsZQ484aKejK0XfU0f5WOPtwGUUSRgVG+OMpR0ehy3w2rU+Sy QZUf4Dn0DLdOMAiby1ONwfBJ9RmIGXkMpaOuNF/mL6hY+gyOanNuHjntJ+j/6ygr 7fC1y82VCxZpoKRiW21J6QebwQf7YvwaOER2hR6MdPtwK6PPWGsl8kTkWkXC2nZA Gnlmo01IPYv/+tOczqMlMHROqfhBaf9WGcE3VXvg7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudehgdefudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 27 Apr 2022 06:57:28 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BE82D2A1E9D; Wed, 27 Apr 2022 12:57:26 +0200 (CEST) Date: Wed, 27 Apr 2022 12:57:26 +0200 From: Alvaro Herrera To: Amit Kapila Cc: Tomas Vondra , Pg Hackers Subject: Re: bogus: logical replication rows/cols combinations Message-ID: <202204271057.6mdn7n5ccvge@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-27, Amit Kapila wrote: > On Wed, Apr 27, 2022 at 3:13 PM Alvaro Herrera wrote: > > > Changing this to behave the way you expect would be quite difficult, > > > because at the moment we build a single OR expression from all the row > > > filters. We'd have to keep the individual expressions, so that we can > > > build a column list for each of them (in order to ignore those that > > > don't match). > > > > I think we should do that, yeah. > > This can hit the performance as we need to evaluate each expression > for each row. So we do things because they are easy and fast, rather than because they work correctly? > > ... In fact I think they are quite orthogonal: probably you should be > > able to publish a partitioned table in two publications, with different > > rowfilters and different column lists (which can come from the > > topmost partitioned table), and each partition should still work in the > > way I describe above. > > We consider the column lists or row filters for either the partition > (on which the current operation is performed) or partitioned table > based on 'publish_via_partition_root' parameter of publication. OK, but this isn't relevant to what I wrote. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/