Re: Reusing Dead Tuples:

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Janardhan <jana-reddy(at)mediaring(dot)com(dot)sg>
Cc: PostgresSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Reusing Dead Tuples:
Date: 2002-12-11 05:51:21
Message-ID: 9369.1039585881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Janardhan <jana-reddy(at)mediaring(dot)com(dot)sg> writes:
> if i am not wrong while updating a tuple, we are also creating a new
> index entry .

Yes.

> so if the
> tuple is dead then the index entry pointing it also a dead index tuple.

Yes.

> so even if dead index tuple is not
> removed then also it should not break thing, since the dead index tuple
> will not be used, am i correct?.

No. A process running an indexscan will assume that the index tuple
accurately describes the heap tuple it is pointing at. If the heap
tuple is live then it will be returned as satisfying the indexscan.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Al Sutton 2002-12-11 07:16:10 Re: [mail] Re: 7.4 Wishlist
Previous Message Janardhan 2002-12-11 05:47:14 Re: Reusing Dead Tuples: