Re: Optimizer not using index on 120M row table - Mailing list pgsql-general

From Neil Conway
Subject Re: Optimizer not using index on 120M row table
Date
Msg-id 1049776140.3145.32.camel@tokyo
Whole thread Raw
In response to Re: Optimizer not using index on 120M row table  ("Jim C. Nasby" <jim@nasby.net>)
Responses Re: Optimizer not using index on 120M row table
List pgsql-general
On Tue, 2003-04-08 at 00:18, Jim C. Nasby wrote:
> 'visibility information'? Is this related to the versioning that pgsql
> uses instead of read locks?

Yes -- it's the information used by PostgreSQL to implement MVCC.

> I know in other RDBMS's it's very useful to
> have index covering because it eliminates needing to load the base pages
> into memory at all

Storing visibility information in index entries (in addition to heap
tuples) doesn't strike me as a good idea: for one thing, an
UPDATE/DELETE would require touching both heap tuples and any index
entries that point to them. It would also bloat the size of indexes.

Cheers,

Neil


pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Optimizer not using index on 120M row table
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Optimizer not using index on 120M row table