pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-performance@postgresql.org, Michael Stone <mstone+postgres@mathom.us>
Subject: Re: Index scan startup time
Date: Thu, 30 Mar 2006 14:35:53 +0200
Message-ID: <442BD0A9.8050805@logix-tt.com> (raw)
In-Reply-To: <200603301424.27765.peter_e@gmx.net>
References: <200603301359.11038.peter_e@gmx.net>
	<20060330120604.GJ6811@mathom.us>
	<200603301424.27765.peter_e@gmx.net>

Hi, Peter,

Peter Eisentraut wrote:
>>>The table has seen VACUUM FULL and REINDEX before this.
>>But no analyze?
> ANALYZE as well, but the plan choice is not the point anyway.

Maybe you could add a combined Index on activity_id and state, or (if
you use this kind of query more often) a conditional index on
activity_id where state in (10000,10001).

Btw, PostgreSQL 8.1 could AND two bitmap index scans on the activity and
state indices, and get the result faster (i presume).

Markus
-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org



view thread (16+ messages)  latest in thread

Message-ID: <442BD0A9.8050805@logix-tt.com>
Permalink:  ../442BD0A9.8050805@logix-tt.com/
Also on:    postgresql.org/message-id/442BD0A9.8050805@logix-tt.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: schabi@logix-tt.com, peter_e@gmx.net, mstone+postgres@mathom.us
  Subject: Re: Index scan startup time
  In-Reply-To: <442BD0A9.8050805@logix-tt.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