Re: Reusing Dead Tuples: - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Reusing Dead Tuples:
Date
Msg-id 9369.1039585881@sss.pgh.pa.us
Whole thread Raw
In response to Re: Reusing Dead Tuples:  (Janardhan <jana-reddy@mediaring.com.sg>)
List pgsql-hackers
Janardhan <jana-reddy@mediaring.com.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


pgsql-hackers by date:

Previous
From: Janardhan
Date:
Subject: Re: Reusing Dead Tuples:
Next
From: "Al Sutton"
Date:
Subject: Re: [mail] Re: 7.4 Wishlist