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 1mMWr8-0003hj-EP for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 14:41: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 1mMWr6-00047a-2e for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 14:41:16 +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 1mMWr5-00047S-Bm for pgsql-hackers@lists.postgresql.org; Sat, 04 Sep 2021 14:41:15 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMWr2-0006MY-3S for pgsql-hackers@postgresql.org; Sat, 04 Sep 2021 14:41:14 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 0B36132007E8; Sat, 4 Sep 2021 10:41:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 04 Sep 2021 10:41:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=NXYix0cq1kY1GgGr7/2OZ2UkdbZvguzuo8kk62CGJPA=; b=Xpqc1eo0 sRuMfRutqqBp/6qQYMl19eY0C0+BMy1ySUYzdrS/VLj/eIYBbE9AX6cMPg5jqD+U WRWMCHHCyenT3rVMG2baNvNbf4DneoBME/bqOY8fC312YFC6GQ7DTP62HozB5Df6 q8HZb69f7agD5TX00zUPmCUhiOQ1ahMeGgim31TnjTyMCPuinezK2M8vz8uQndNN uOxFyg284GHkTvfujsM8vvplNOzZbLv4jOam5e2rAcFscTpxZOOlmm5tZI7Opncf cSLRG2YYtIKval9wgfAr6ETb+EUqwD/gWPKlkE1TkjeSpgYwLpDzMP7O8ZqBEIaE zXBPSOjgqPnF8A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvledgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 4 Sep 2021 10:41:09 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id F0D2F2A071A; Sat, 4 Sep 2021 10:41:04 -0400 (-04) Date: Sat, 4 Sep 2021 10:41:04 -0400 From: Alvaro Herrera To: Amit Kapila Cc: Rahila Syed , Tomas Vondra , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109041441.gyqpsvi44fff@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 2021-Sep-04, Amit Kapila wrote: > On Thu, Sep 2, 2021 at 2:19 PM Alvaro Herrera wrote: > > > > On 2021-Sep-02, Rahila Syed wrote: > > > > > After thinking about this, I think it is best to remove the entire table > > > from publication, > > > if a column specified in the column filter is dropped from the table. > > > > Hmm, I think it would be cleanest to give responsibility to the user: if > > the column to be dropped is in the filter, then raise an error, aborting > > the drop. > > Do you think that will make sense if the user used Cascade (Alter > Table ... Drop Column ... Cascade)? ... ugh. Since CASCADE is already defined to be a potentially-data-loss operation, then that may be acceptable behavior. For sure the default RESTRICT behavior shouldn't do it, though. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/