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 1gIHaT-0001v4-Me for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Nov 2018 18:20:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIHYL-0000nD-F0 for pgsql-bugs@arkaria.postgresql.org; Thu, 01 Nov 2018 18:18:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIE8G-0005jQ-LH for pgsql-bugs@lists.postgresql.org; Thu, 01 Nov 2018 14:39:36 +0000 Received: from mr23p40im-ztdg03151501.me.com ([17.111.223.76]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gIE8D-0008Gi-Ok for pgsql-bugs@lists.postgresql.org; Thu, 01 Nov 2018 14:39:35 +0000 Received: from process-dkim-sign-daemon.mr23p40im-ztdg03151501.me.com by mr23p40im-ztdg03151501.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) id <0PHI00E00RDO4G00@mr23p40im-ztdg03151501.me.com> for pgsql-bugs@lists.postgresql.org; Thu, 01 Nov 2018 14:39:32 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1541083172; bh=VnBcpGl1ZqFpiL38B2dUOwspmy/lmeIl2nHzpPxl0bo=; h=Content-type:MIME-version:Subject:From:Date:Message-id:To; b=1ZhDu9hvMsT2yUUFqnccQ27KIHudxcddsfYxU5SbE/uSN7WT1euDeyDEbWsaAnkvP GXEv8UBbpmNjUz7tWOo7WqJu/Dkv3cmb8fC3VedtPGaxiG+5IgQYvtzkI9zh4t5Vb3 gx3jYepqrGYyuMk2UPHEkzuYQ7cx1QxKrKe2CL3w9hqXwl2Y+5KKMMpvPka56BtynL nYsEkOh7KjZRc/rwsADCkiy2Y6OHAbXb3z5WY0iSn3cIR/6uVja7MTjDkxu5xQQgfu 2gucqPiOjglLdDBvesmlWRk5R0/elQa75DMLFM5XOohngCTIXFmOb9cRJOY4i1Ii4R 0KStgbGaAlwJw== Received: from icloud.com ([127.0.0.1]) by mr23p40im-ztdg03151501.me.com (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPSA id <0PHI004OTRDLTV00@mr23p40im-ztdg03151501.me.com>; Thu, 01 Nov 2018 14:39:32 +0000 (GMT) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 mlxscore=0 mlxlogscore=763 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811010127 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-01_10:,, signatures=0 Content-type: text/plain; charset=us-ascii MIME-version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: BUG #15480: psql 11 array concatenation in CASE takes on values from the CASE expression when using enum_range From: Matthew Williams In-reply-to: <7202.1541082414@sss.pgh.pa.us> Date: Thu, 01 Nov 2018 22:39:18 +0800 Cc: pg@mattyw.net, pgsql-bugs@lists.postgresql.org Content-transfer-encoding: quoted-printable Message-id: <43D80FCA-97DB-4D96-8431-615856419BB6@me.com> References: <15480-b81ba9ae56bbe35e@postgresql.org> <7202.1541082414@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.101.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Apologies, I had an old safari tab open on the submission of the = original bug (15471). It appears it's resubmitted the form. Matt > On 1 Nov 2018, at 10:26 pm, Tom Lane wrote: >=20 > =3D?utf-8?q?PG_Bug_reporting_form?=3D writes: >> Below is an example .sql file that replicates the problem. Put = simply, when >> we array concat with enum_range in the result of a CASE statement the >> concatenation takes the expression from the CASE statement, not the = enum >> range. >=20 > Isn't this a duplicate of bug #15471 ? >=20 > regards, tom lane