Re: [PERFORM] Query about index usage

2010-06-22 Thread Jayadevan M
Thank you for the detailed explanation. Regards, Jayadevan DISCLAIMER: "The information in this e-mail and any attachment is intended only for the person to whom it is addressed and may contain confidential and/or privileged material. If you have received this e-mail in error, kindly cont

Re: [PERFORM] Query about index usage

2010-06-22 Thread Greg Smith
Jayadevan M wrote: It is mentioned that table data blocks have data about tuple visibility and hence table scans are always necessary. So how does PostgreSQL reduce the number of blocks to be read by using indexes? To be useful, a query utilizing an index must be selective: it must only retu

Re: [PERFORM] Query about index usage

2010-06-22 Thread Jayadevan M
Hello, > PostgreSQL can't currently avoid reading the table, because that's > where the tuple visibility information is stored. We've been making > progress toward having some way to avoid reading the table for all > except very recently written tuples, but we're not there yet (in any > production

Re: [PERFORM] Query about index usage

2010-06-13 Thread Jayadevan M
> PostgreSQL can't currently avoid reading the table, because that's > where the tuple visibility information is stored. We've been making > progress toward having some way to avoid reading the table for all > except very recently written tuples, but we're not there yet (in any > production versio

Re: [PERFORM] Query about index usage

2010-06-11 Thread Bob Lunney
check the undo logs to determine the state that applies to your transaction. Its just two different ways to accomplish the same thing. Bob Lunney --- On Fri, 6/11/10, Jayadevan M wrote: > From: Jayadevan M > Subject: [PERFORM] Query about index usage > To: pgsql-performance@postgre

Re: [PERFORM] Query about index usage

2010-06-11 Thread Greg Smith
Jayadevan M wrote: One query about PostgreSQL's index usage. If I select just one column on which there is an index (or select only columns on which there is an index), and the index is used by PostgreSQL, does PostgreSQL avoid table access if possible? PostgreSQL keeps information about what

Re: [PERFORM] Query about index usage

2010-06-11 Thread Kevin Grittner
Jayadevan M wrote: > One query about PostgreSQL's index usage. If I select just one > column on which there is an index (or select only columns on which > there is an index), and the index is used by PostgreSQL, does > PostgreSQL avoid table access if possible? PostgreSQL can't currently avoid

[PERFORM] Query about index usage

2010-06-11 Thread Jayadevan M
Hello all, One query about PostgreSQL's index usage. If I select just one column on which there is an index (or select only columns on which there is an index), and the index is used by PostgreSQL, does PostgreSQL avoid table access if possible? I am trying to understand the differences betwee