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 1mLiPV-0005n9-2b for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Sep 2021 08:49:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLiPR-000842-Q1 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Sep 2021 08:49:21 +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 1mLiPR-00083u-I1 for pgsql-hackers@lists.postgresql.org; Thu, 02 Sep 2021 08:49:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLiPK-00035i-MG for pgsql-hackers@postgresql.org; Thu, 02 Sep 2021 08:49:21 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 9792B5C0161; Thu, 2 Sep 2021 04:49:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 02 Sep 2021 04:49:12 -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=JpyCAoGbxqHGNKLgSSbiV7mkqW+Hcv6LyQObciljrU4=; b=Ck8tOx/O zEOMThZnoBgd1oFpEa6RBis+q6Y89AGUjI1AaUWFZOA26F9lwQ4VMqbXGXvV8wmj eb1s8BWHbPWjskSkjDRz7cw1V7pObLQ+2Lulsj7IL21NAnkgqxFS0ynDHhsKSX93 Ga2Q75AfgIlAPRG3bKLD7L6niZ821bmNUCff78WNkjv2ZftGAz4B7BaTZ5Z0Atul 7nPoBlIYuWrHFttI8VdUoX/o2FGYcUPovEnVTVE0yUROYNaEFfT7C8h6VGI8bOvX ZaU9YgmiqjFUDI5g1nLdGnajmAGZ4QZC//yMcd9NfcRkITsHQsFewjrI2CszbrlQ 6GZ/hXBOmIRG2w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvhedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Sep 2021 04:49:11 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id B3D162A06EC; Thu, 2 Sep 2021 04:49:08 -0400 (-04) Date: Thu, 2 Sep 2021 04:49:08 -0400 From: Alvaro Herrera To: Rahila Syed Cc: Amit Kapila , Tomas Vondra , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109020849.ql6bqpcecpxh@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-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. Then it is up to them to figure out what to do. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ "El destino baraja y nosotros jugamos" (A. Schopenhauer)