Re: Does indexing help >= as well as = for integer columns?

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Does indexing help >= as well as = for integer columns?
Date: 2005-02-02 05:58:17
Message-ID: 87r7jzo64m.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> "TJ O'Donnell" <tjo(at)acm(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Ben-Nes 2005-02-02 05:58:40 Wierd memory problem with Apache / PHP. Related to pg_query ?
Previous Message William Yu 2005-02-02 05:31:47 Re: Postgresql and Athlon64 ?