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 1nlYwq-0005j4-US for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 16:30:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nlYwo-00030U-Rk for pgsql-hackers@arkaria.postgresql.org; Mon, 02 May 2022 16:30:54 +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 1nlYwn-00030L-Pi for pgsql-hackers@lists.postgresql.org; Mon, 02 May 2022 16:30:54 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nlYwl-0008Sd-2y for pgsql-hackers@lists.postgresql.org; Mon, 02 May 2022 16:30:52 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CC1325C0065; Mon, 2 May 2022 12:30:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 02 May 2022 12:30:49 -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=1651509049; x=1651595449; bh=AjBueGwTmdxz3d4wnD1SGfYwiwny 1mlkE4dyseZ44uo=; b=uQE26ud4oV4pnR5iI/knm3W7uj9nXVpe1hCwd93MBxRm QNc42kJcbnzZ/4jscROfNeN2FQT17Iyg0vTQUyonNFTczNoOXS8XvZGUTw329xKq 6yr8S2MnA19G9SGqPBV/t7tSFehukbB1/BbObxed/NTNaklenSSlpashmbCV3LRg tdxLDbnord25j0MlpRieHr9RGl9yyHeytmYWhOARelfgCeZbljVv/atLOCnw/zFT NMMnjI1PoP0ADlmrtg3ZSMbDS06+Aat991wSRNS6uSU1kGgevphmxk/bK5TcegiP NW/x03W6z4LQhBYZOQDm5uRKHojy5gb1JzGhwKOP5A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehgddutddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 May 2022 12:30:49 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EEEA22A0FD1; Mon, 2 May 2022 18:30:45 +0200 (CEST) Date: Mon, 2 May 2022 18:30:45 +0200 From: Alvaro Herrera To: Tomas Vondra Cc: Amit Kapila , Pg Hackers Subject: Re: bogus: logical replication rows/cols combinations Message-ID: <202205021630.qdbuspnhnqua@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5a85b8b7-fc1c-364b-5c62-0bb3e1e25824@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Apr-28, Tomas Vondra wrote: > SELECT > (CASE WHEN (a < 0) OR (a > 0) THEN a ELSE NULL END) AS a, > (CASE WHEN (a > 0) THEN b ELSE NULL END) AS b, > (CASE WHEN (a < 0) THEN c ELSE NULL END) AS c > FROM uno WHERE (a < 0) OR (a > 0) BTW, looking at the new COPY commands, the idea of "COPY table_foo (PUBLICATION pub1, pub2)" is looking more and more attractive, as a replacement for having the replica cons up an ad-hoc subquery to COPY from. Something to think about for pg16, maybe. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/ "You're _really_ hosed if the person doing the hiring doesn't understand relational systems: you end up with a whole raft of programmers, none of whom has had a Date with the clue stick." (Andrew Sullivan)