Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 8ED70E60237 for ; Sun, 29 Jan 2012 17:33:28 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RrcNM-0006BJ-E3 for pgsql-bugs@postgresql.org; Sun, 29 Jan 2012 21:33:29 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0TLXDGZ014416; Sun, 29 Jan 2012 16:33:14 -0500 (EST) To: Matteo Beccati cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6416: Expression index not used with UNION ALL queries In-reply-to: <4F2562B6.50509@beccati.com> References: <4F2562B6.50509@beccati.com> Comments: In-reply-to Matteo Beccati message dated "Sun, 29 Jan 2012 16:16:06 +0100" Date: Sun, 29 Jan 2012 16:33:13 -0500 Message-ID: <14415.1327872793@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/240 X-Sequence-Number: 32307 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. regards, tom lane