Re: sequential scan unduly favored over text search gin index

From: Sushant Sinha <sushant354(at)gmail(dot)com>
To: Tomas Vondra <tv(at)fuzzy(dot)cz>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: sequential scan unduly favored over text search gin index
Date: 2011-06-21 02:25:34
Message-ID: 1308623134.1747.1.camel@dragflick
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


>
> I agree the estimates are damn precise in this case (actually the
> estimates are exact). The problem is the planner thinks the seq scan is
> about 30% cheaper than the bitmap index scan.
>
> I guess you could poke the planner towards the bitmap scan by lowering
> the random_page_cost (the default value is 4, I'd say lowering it to 2
> should do the trick).

The numbers that I gave was after setting random_page_cost = 1.0 After
this I don't know what to do.

-Sushant.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Mario Guerrero 2011-06-21 03:35:53 Cross Table (Pivot)
Previous Message Jon Nelson 2011-06-20 19:31:05 Re: bad plan: 8.4.8, hashagg, work_mem=1MB.