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 1mTuBb-0005Qx-Pt for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Sep 2021 23:00:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mTuBa-0000F4-Fa for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Sep 2021 23:00:54 +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 1mTuBa-0000Ev-7g for pgsql-hackers@lists.postgresql.org; Fri, 24 Sep 2021 23:00:54 +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 1mTuBX-00060M-JM for pgsql-hackers@postgresql.org; Fri, 24 Sep 2021 23:00:53 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 3784C5C01B5; Fri, 24 Sep 2021 19:00:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 24 Sep 2021 19:00:50 -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=Oj7T5kRCrvIlPmFov2NX5Hh3EiDyxwUzqUIyQ/P9jzo=; b=CRnKqXba hzfhO1xmKt5GTx8kklH0nQaUkMzRVjZsi0bhtfsHjWW0WZph33GEbYpr6GQIgjrr KRI2liAz5oZwN4b3cL+8//FZEy4SO0uivSv2hQF0A1PZeKJE6plNYXo55uHYz9Wb 4o4yjH9hGesQKft8Rm+CswXcqoEX8CETy0lrOyD4EAVEmtzVjAgj5aP/WSDyPWYM scADyXKxTepYkZuaz66hZgCttDbGjMZuqvGICpTDjihNT+zKvY2FizbfKl8pYIGW AgJOc2K5JAev6kU5E/h50tuuukfjqOdo4Hd+Lot5XT5bkioHplXpfaErgakBChZg UtODx4s11fvtAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudejvddgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeetjeffkeehtddtjeduhfekffehfeevjeehffdthffhheeg feeuveeviedvkedvffenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgpdhpoh hsthhgrhdrvghspdgvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Sep 2021 19:00:49 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 4EC522A0754; Fri, 24 Sep 2021 20:00:47 -0300 (-03) Date: Fri, 24 Sep 2021 20:00:47 -0300 From: Alvaro Herrera To: Tomas Vondra Cc: vignesh C , Amit Kapila , Rahila Syed , Peter Smith , PostgreSQL-development Subject: Re: Column Filtering in Logical Replication Message-ID: <202109242300.luehabughrjv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <992e75b9-d70f-9172-1fa8-088dbf1e4232@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Sep-25, Tomas Vondra wrote: > On 9/25/21 12:24 AM, Alvaro Herrera wrote: > > On 2021-Sep-24, Tomas Vondra wrote: > > > > > But that's not the column filtering patch, right? Why would this patch > > > depend on "schema level support", but maybe the consensus is there's some > > > common part that we need to get in first? > > > > Yes, the grammar needs to be common. I posted a proposed grammar in > > https://www.postgresql.org/message-id/202109241325.eag5g6mpvoup%40alvherre.pgsql > > (this thread) which should serve both. I forgot to test the addition of > > a WHERE clause for row filtering, though, and I didn't think to look at > > adding SEQUENCE support either. > > Fine with me, but I still don't know which version of the column filtering > patch should I look at ... maybe there's none up to date, at the moment? I don't think there is one. I think the latest is what I posted in https://postgr.es/m/202109061751.3qz5xpugwx6w@alvherre.pgsql (At least I don't see any reply from Rahila with attachments after that), but that wasn't addressing a bunch of review comments that had been made; and I suspect that Amit K has already committed a few conflicting patches after that. > > (I'm not sure what's going to be the proposal regarding FOR ALL TABLES > > IN SCHEMA for sequences. Are we going to have "FOR ALL SEQUENCES IN > > SCHEMA" and "FOR ALL TABLES AND SEQUENCES IN SCHEMA"?) > > Should be "FOR ABSOLUTELY EVERYTHING IN SCHEMA" of course ;-) hahah ... > On a more serious note, a comma-separated list of objects seems like the > best / most flexible choice, i.e. "FOR TABLES, SEQUENCES IN SCHEMA"? Hmm, not sure if bison is going to like that. Maybe it's OK if SEQUENCES is a fully reserved word? But nothing beats experimentation! -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest "foo" someone someday shall type "supercalifragilisticexpialidocious" (5th Commandment for C programmers)