Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHY3y-0005ip-UH for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Oct 2018 17:44:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gHY3x-0004NU-33 for pgsql-bugs@arkaria.postgresql.org; Tue, 30 Oct 2018 17:44:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHY3w-0004NN-T6 for pgsql-bugs@lists.postgresql.org; Tue, 30 Oct 2018 17:44:20 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gHY3s-0005rW-9T for pgsql-bugs@lists.postgresql.org; Tue, 30 Oct 2018 17:44:20 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 99E7321F51; Tue, 30 Oct 2018 13:44:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 30 Oct 2018 13:44:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=RqAR3UZcTdXVpgGZzLC2xrwGwoR 5vx9MUeFfiNoLRSg=; b=UD0HF3Yx6E4bld2/qnq4mqBtYdmYnJsLtyUlQTH+a7e ACivlTQn01ZSuygic9MtzJdTJD4n0yuUiRc5bGQDdKrmAKGe1sG+z+KGxKgEC4cw UHXHFpWoN1x66/K9wlThBuqq6LlJSXHPM8xpnd1iDBO5G7AxH7M3VRPE+uwsLhQc yx1l3xxNo7/kDG1IV1KI2wnxokh8Z02MU8ndLODV3kxAvNhG1cljmVQfgpKSAXWa BTNPx1DlnRatnDfFY2dfM9rExGCa3dfgN3RfaIRO+lfXgLx88QTDgmlg0cMOkE7S JvTsVPBorVg2orxOqc5+Cm8QPUBg3tD4bWE1KlcVRcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=RqAR3U ZcTdXVpgGZzLC2xrwGwoR5vx9MUeFfiNoLRSg=; b=XTNz205CSkcw6US5bDCVhC 4tEhtAb6+nZgk6YJ4DCi6dZj4muGfy/n4LggFqPAmvxtZJARsOIoMiEtRUHFhOrG HOJh5RIyJTZVjhM9XrWt5+WvuTmOmaYyVlddTwOslEhUswMsjAyVY/K6BSi3WjpM 1OFesxv2I4SqeEVaQACRgRw+uJgLMWvdzIwvlayjBRiSUwRwOPHmq62/Hxxs28r2 xI7fiKxxQ7dZ0hnpEfgo1cDBvu43U7HTIJd6vMifsbeir5MXs5r/CVQ5ILl35LuD KMlkprtqSSa3rByknkhR5KSIAB7qNDaqyFvy3P81VHd6xKcOh2rC8MDiu/t3u9xg == X-ME-Sender: X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id E28E1102E0; Tue, 30 Oct 2018 13:44:12 -0400 (EDT) Date: Tue, 30 Oct 2018 10:44:11 -0700 From: Andres Freund To: Tom Lane Cc: Andrew Gierth , pg@mattyw.net, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15471: psql 11 array concatenation in CASE takes on values from the CASE expression when using enum_range Message-ID: <20181030174411.ryzrnzfjnuveknf6@alap3.anarazel.de> References: <15471-1117f49271989bad@postgresql.org> <8112.1540900775@sss.pgh.pa.us> <87efc77gh2.fsf@news-spur.riddles.org.uk> <15342.1540906254@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15342.1540906254@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-10-30 09:30:54 -0400, Tom Lane wrote: > Good guess but I don't think that changed anything. It looks to me > like the culprit is commit c12d570fa, so it's my bug not Andres' :-(. :) > This is all some more fuel for the idea that we need a less messy > substitute for CaseTestExpr. As it happens, I was just fooling with > that yesterday, and hope to have something to post soon. But it'll > be too invasive to back-patch. I'll try to fix this particular > problem more locally. Yea, I agree we need something better there. I happened to also play around with that (more from the angle that we'd want similar infrastructure for the SQL function inlining case we talked about) on the long flights back from .eu yesterday, but didn't get that far. Will wait till you have posted something. Greetings, Andres Freund