pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <smarlowe@g2switchworks.com>
To: Sergei Shelukhin <realgeek@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: any way to get rid of Bitmap Heap Scan recheck?
Date: Wed, 20 Jun 2007 17:06:25 -0500
Message-ID: <4679A4E1.2060106@g2switchworks.com> (raw)
In-Reply-To: <1179570137.996544.101940@w5g2000hsg.googlegroups.com>
References: <1179380547.753418.193030@w5g2000hsg.googlegroups.com>
	<1179570137.996544.101940@w5g2000hsg.googlegroups.com>

Sergei Shelukhin wrote:
> Hi.
> I have the following join condition in a query
> "posttag inner join tag ON posttag.tagid = tag.id and tag.name =
> 'blah'"
> tag.id is PK, I have indexes on posttag.tagid and tag.name both
> created  with all the options set to default.
> PG version is 8.1.
>
>
> The query is very slow (3 minutes on test data), here's what takes all
> the time, from explain results:Any ideas?

Yes, post the output of

explain analyze select ... (rest of query here)

for starters



view thread (5+ messages)

Message-ID: <4679A4E1.2060106@g2switchworks.com>
Permalink:  ../4679A4E1.2060106@g2switchworks.com/
Also on:    postgresql.org/message-id/4679A4E1.2060106@g2switchworks.com

 · 

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: smarlowe@g2switchworks.com, realgeek@gmail.com
  Subject: Re: any way to get rid of Bitmap Heap Scan recheck?
  In-Reply-To: <4679A4E1.2060106@g2switchworks.com>

* 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