Re: BUG #15471: psql 11 array concatenation in CASE takes on values from the CASE expression when using enum_range
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andrew Gierth <andrew@tao11.riddles.org.uk>, pg@mattyw.net, pgsql-bugs@lists.postgresql.org
Date: 2018-10-30T17:44:11Z
Lists: pgsql-bugs
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
Commits
-
Fix interaction of CASE and ArrayCoerceExpr.
- 2bd6dcdeff09 11.1 landed
- 14a158f9bff1 12.0 landed
-
Teach eval_const_expressions() to handle some more cases.
- 3decd150a2d5 11.0 cited
-
Support arrays over domains.
- c12d570fa147 11.0 cited