pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sushant Sinha <sushant354@gmail.com>
To: Tomas Vondra <tv@fuzzy.cz>
Cc: pgsql-performance@postgresql.org
Subject: Re: sequential scan unduly favored over text search gin index
Date: Tue, 21 Jun 2011 07:55:34 +0530
Message-ID: <1308623134.1747.1.camel@dragflick> (raw)
In-Reply-To: <4DFF990F.8080906@fuzzy.cz>
References: <1308584339.2488.12.camel@dragflick>
	<4DFF27C5020000250003E9A4@gw.wicourts.gov>
	<1308585840.2488.13.camel@dragflick>
	<4DFF990F.8080906@fuzzy.cz>


> 
> 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.




view thread (9+ messages)  latest in thread

Message-ID: <1308623134.1747.1.camel@dragflick>
Permalink:  ../1308623134.1747.1.camel@dragflick/
Also on:    postgresql.org/message-id/1308623134.1747.1.camel@dragflick

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: sushant354@gmail.com, tv@fuzzy.cz
  Subject: Re: sequential scan unduly favored over text search gin index
  In-Reply-To: <1308623134.1747.1.camel@dragflick>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox