Re: Strange behaviour with a query - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Strange behaviour with a query
Date
Msg-id dcc563d10904170330t5bd8accdva0b4b77bca4286d1@mail.gmail.com
Whole thread Raw
In response to Re: Strange behaviour with a query  (Scott Marlowe <scott.marlowe@gmail.com>)
Responses Re: Strange behaviour with a query  (Iñigo Martinez Lasala <imartinez@vectorsf.com>)
List pgsql-admin
On Fri, Apr 17, 2009 at 4:29 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> On Fri, Apr 17, 2009 at 4:17 AM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
>> On Fri, Apr 17, 2009 at 3:00 AM, Iñigo Martinez Lasala
>> <imartinez@vectorsf.com> wrote:
>>> Hi everybody again.
>>>
>>> Deleting rel_dis_can_fk index has solved the problem! But.... why??
>>
>> Hard to say without explain analyze output.
>>
>
> I'd hazard a guess that you're getting a lot more rows back from the
> bitmap scan of rel_dis_can_fk than the query planner expects.  But
> that's just a guess.

Try craniking up your default stats setting and running analyze again
and seeing if it runs fast even with the index.

pgsql-admin by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Strange behaviour with a query
Next
From: Iñigo Martinez Lasala
Date:
Subject: Re: Strange behaviour with a query