pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@postnewspapers.com.au>
To: Lutischán Ferenc <lutischanf@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Improve Seq scan performance
Date: Mon, 10 Nov 2008 15:55:55 +0900
Message-ID: <4917DAFB.8000003@postnewspapers.com.au> (raw)
In-Reply-To: <4917D9C3.9060001@gmail.com>
References: <4917D9C3.9060001@gmail.com>

Lutischán Ferenc wrote:

> It is possible to make an index on the table, and make a seq index scan 
> on this values?

My understanding is that this isn't possible in PostgreSQL, because 
indexes do not contain information about tuple visibility. Data read 
from the index might refer to tuples that've been deleted as far as your 
transaction is concerned, or to tuples that were created after your 
snapshot was taken.

--
Craig Ringer



view thread (9+ messages)  latest in thread

Message-ID: <4917DAFB.8000003@postnewspapers.com.au>
Permalink:  ../4917DAFB.8000003@postnewspapers.com.au/
Also on:    postgresql.org/message-id/4917DAFB.8000003@postnewspapers.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig@postnewspapers.com.au, lutischanf@gmail.com
  Subject: Re: Improve Seq scan performance
  In-Reply-To: <4917DAFB.8000003@postnewspapers.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox