Re: index creation on 7.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
Cc: Ben <bench(at)silentmedia(dot)com>, pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: index creation on 7.3
Date: 2007-01-10 05:12:49
Message-ID: 27755.1168405969@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe <smarlowe(at)g2switchworks(dot)com> writes:
> On Tue, 2007-01-09 at 17:17, Ben wrote:
> If I create an index on a table that needs to be vacuumed in 7.3, will the
> dead rows get indexed as well?

> Yes. I think. I'm pretty sure that's still true in 8.2. as well. The
> way indexes work is that the index points to the oldest version of a
> tuple in existence, said tuple which then points to the next newer
> version and so on.

IIRC, CREATE INDEX will ignore tuples that are "definitely dead", ie,
too old to be visible to any open transaction. It *will* (and must)
index tuples that are recently dead but might still be visible to some
open transaction.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ashish Karalkar 2007-01-10 05:48:01 PostgreSQL Connections?
Previous Message garrettmoore@gmail.com 2007-01-10 01:54:03 Trying to load MySQL data