Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 5942CBED7F3 for ; Mon, 30 Jan 2012 05:53:06 -0400 (AST) Received: from aperol.beccati.com ([93.94.29.238] helo=mail.beccati.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rrnv4-0003NV-L1 for pgsql-bugs@postgresql.org; Mon, 30 Jan 2012 09:53:07 +0000 Received: (qmail 44780 invoked from network); 30 Jan 2012 10:52:38 +0100 Received: from unknown (HELO ?192.168.1.202?) (matteo@beccati.com@88.149.176.119) by mail.beccati.com with SMTP; 30 Jan 2012 09:52:38 -0000 Message-ID: <4F26686C.2090706@beccati.com> Date: Mon, 30 Jan 2012 10:52:44 +0100 From: Matteo Beccati User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: Tom Lane CC: pgsql-bugs@postgresql.org Subject: Re: BUG #6416: Expression index not used with UNION ALL queries References: <4F2562B6.50509@beccati.com> <14415.1327872793@sss.pgh.pa.us> In-Reply-To: <14415.1327872793@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/249 X-Sequence-Number: 32316 On 29/01/2012 22:33, Tom Lane wrote: > Matteo Beccati writes: >>> I've just noticed that an expression index I've created was not used with a >>> view contiaining a UNION ALL. Switching to UNION or querying the table >>> directly works as expected. > > Looks like I broke this back in November :-(. Fixed, thanks for the > report. Thanks a lot Tom! Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/