Re: Does indexing help >= as well as = for integer columns? - Mailing list pgsql-general

From Greg Stark
Subject Re: Does indexing help >= as well as = for integer columns?
Date
Msg-id 87r7jzo64m.fsf@stark.xeocode.com
Whole thread Raw
In response to Re: Does indexing help >= as well as = for integer columns?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Does indexing help >= as well as = for integer columns?
List pgsql-general

> "TJ O'Donnell" <tjo@acm.org> writes:
>
> >   ->  Seq Scan on structure  (cost=0.00..191619.56 rows=1765669 width=32) (actual
> > time=8050.437..42117.062 rows=1569 loops=1)
         ^^^^^^^^

And do you vacuum regularly? Have you done batch updates or deletes and then
never inserted enough records to reuse that dead space? You might have to
vacuum full (or alternatively use the cluster command) to reclaim this dead
space.

I don't recall what the original motivation to rewrite the analyze sampling
was, did having lots of dead tuples cause bad estimates in 7.4?

--
greg

pgsql-general by date:

Previous
From: William Yu
Date:
Subject: Re: Postgresql and Athlon64 ?
Next
From: Greg Stark
Date:
Subject: Re: PL/PgSQL, Inheritance, Locks, and Deadlocks