From: | Jean-Luc Lachance <jllachan(at)nsd(dot)ca> |
---|---|
To: | Neil Conway <neilc(at)samurai(dot)com> |
Cc: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, "Charles H(dot) Woloszynski" <chw(at)clearmetrix(dot)com>, Richard Huxton <dev(at)archonet(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Win2K Questions |
Date: | 2002-11-11 16:26:15 |
Message-ID: | 3DCFDA27.5AF840D3@nsd.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
This explains it all.
What would be involved in adding version and visibility to the index?
It would allow for scanning the index instead of the whole table for
many of the count() request.
JLL
Neil Conway wrote:
>
> Jean-Luc Lachance <jllachan(at)nsd(dot)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(at)samurai(dot)com> || PGP Key ID: DB3C29FC
From | Date | Subject | |
---|---|---|---|
Next Message | scott.marlowe | 2002-11-11 17:00:37 | Re: Stale Process |
Previous Message | scott.marlowe | 2002-11-11 16:19:08 | Re: SQL Tuning |