Skip site navigation (1) Skip section navigation (2)

index scan of whole table, can't see why

From: "Dan Langille" <dan(at)langille(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: index scan of whole table, can't see why
Date: 2005-01-20 01:37:59
Message-ID: 41EEC527.22215.A7AAF84@localhost (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Hi folks,

Running on 7.4.2, recently vacuum analysed the three tables in 

The query plan in question changes dramatically when a WHERE clause 
changes from ports.broken to ports.deprecated.  I don't see why.  
Well, I do see why: a sequential scan of a 130,000 rows.  The query 
goes from 13ms to 1100ms because the of this.  The full plans are at

I have tried some tuning by:

  set effective_cache_size to 4000, was 1000
  set random_page_cost to 1, was 4

The resulting plan changes, but no speed improvment, are at

Any suggestions please?  

Dan Langille :
BSDCan - The Technical BSD Conference -


pgsql-performance by date

Next:From: Benjamin WraggDate: 2005-01-20 03:23:51
Subject: Query performance and understanding explain analzye
Previous:From: Benjamin WraggDate: 2005-01-20 00:55:37
Subject: Re: Disk configuration

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group