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

Re: Index scan startup time

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>
Subject: Re: Index scan startup time
Date: 2006-03-30 12:51:47
Message-ID: 20060330125147.GA13611@uio.no (view raw or flat)
Thread:
Lists: pgsql-performance
On Thu, Mar 30, 2006 at 07:42:53AM -0500, Michael Stone wrote:
> Yes. And the estimates are bad enough (orders of magnitude) that I can't 
> help but wonder whether pg could come up with a better plan with better 
> statistics:
> 
>>>>>  ->  Index Scan using activity_pk on activity  (cost=0.00..40717259.91 
>>>>>  rows=6538650 width=8) (actual time=207356.050..207356.722 rows=100 
>>>>>  loops=1) Filter: ((state = 10000) OR (state = 10001))

Isn't the rows=100 here because of the LIMIT?

/* Steinar */
-- 
Homepage: http://www.sesse.net/

In response to

Responses

pgsql-performance by date

Next:From: Peter EisentrautDate: 2006-03-30 12:59:02
Subject: Re: Index scan startup time
Previous:From: Michael StoneDate: 2006-03-30 12:42:53
Subject: Re: Index scan startup time

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