Re: BUG #6416: Expression index not used with UNION ALL queries - Mailing list pgsql-bugs

From Matteo Beccati
Subject Re: BUG #6416: Expression index not used with UNION ALL queries
Date
Msg-id 4F2562B6.50509@beccati.com
Whole thread Raw
In response to BUG #6416: Expression index not used with UNION ALL queries  (php@beccati.com)
Responses Re: BUG #6416: Expression index not used with UNION ALL queries  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On 29/01/2012 16:06, php@beccati.com wrote:
> The following bug has been logged on the website:
>
> Bug reference:      6416
> Logged by:          Matteo Beccati
> Email address:      php@beccati.com
> PostgreSQL version: 9.1.2
> Operating system:   Debian Sqeeze
> Description:
>
> 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.
>
> A self contained test case follows:

Sorry about the formatting issue. You will find it attached.


Cheers
--
Matteo Beccati

Development & Consulting - http://www.beccati.com/

Attachment

pgsql-bugs by date:

Previous
From: php@beccati.com
Date:
Subject: BUG #6416: Expression index not used with UNION ALL queries
Next
From: Josh Berkus
Date:
Subject: Re: wCTE cannot be used to update parent inheritance table