Re: cannot get stable function to use index - Mailing list pgsql-general

From Andy Colson
Subject Re: cannot get stable function to use index
Date
Msg-id 568449B9.9050306@squeakycode.net
Whole thread Raw
In response to Re: cannot get stable function to use index  (Andy Colson <andy@squeakycode.net>)
Responses Re: cannot get stable function to use index  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On 12/30/2015 2:39 PM, Andy Colson wrote:
> On 12/30/2015 2:33 PM, Tom Lane wrote:
>> Andy Colson <andy@squeakycode.net> writes:
>>> On 12/30/2015 2:18 PM, Tom Lane wrote:
>>>> Maybe something weird about the build you're using?  What does
>>>> pg_config print?
>>
>>> [ output ]
>>
>> No smoking gun there either.
>>
>> It might be worthwhile to update to 9.3.10, just in case there is
>> something wonky about this particular build you've got.  But I'm
>> starting to get the feeling that you may not get an answer short
>> of tracing through gincostestimate to see where it's going nuts.
>>
>>             regards, tom lane
>>
>
> The entire database is 78Gig, would you expect a "vacuum analyze" to fix
> it?  I never run it.
>

Ok, I can reproduce this now.  The full vacuum analyze isn't needed.

If I drop and recreate the table it goes back to preferring table scan.
  I can "analyze search" and it still table scans.

But once I "vacuum analyze search", then it starts index scanning.


-Andy




pgsql-general by date:

Previous
From: Andy Colson
Date:
Subject: Re: cannot get stable function to use index
Next
From: Tom Lane
Date:
Subject: Re: cannot get stable function to use index