Re: Win2K Questions - Mailing list pgsql-general

From Neil Conway
Subject Re: Win2K Questions
Date
Msg-id 87r8dvfxti.fsf@mailbox.samurai.com
Whole thread Raw
In response to Re: Win2K Questions  (Jean-Luc Lachance <jllachan@nsd.ca>)
List pgsql-general
Jean-Luc Lachance <jllachan@nsd.ca> writes:
> unless id is indexed there is nothing that can be done with
> select count(*) from table where id >10000;
> Otherwise, the index should be scanned, not the table.

Indexes don't store heap tuple visibility information; you'd need to
scan the heap as well in order to determine which tuples your
transaction can see.

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Win2K Questions
Next
From: Benjamin Scherrey
Date:
Subject: Re: Configuring postgresql build to handle long names