Re: Deleting older versions in unique indexes to avoid page splits - Mailing list pgsql-hackers

From Andy Fan
Subject Re: Deleting older versions in unique indexes to avoid page splits
Date
Msg-id 87msiawodi.fsf@163.com
Whole thread Raw
In response to Re: Deleting older versions in unique indexes to avoid page splits  (Andy Fan <zhihuifan1213@163.com>)
Responses Re: Deleting older versions in unique indexes to avoid page splits
List pgsql-hackers
Andy Fan <zhihuifan1213@163.com> writes:

> (3). DELETE does generate new index entry, but we might not touch
> the indexes at all during deletes (*except the index we used for index
> scan*).

I still not check the code right now (it may still take times for me
even I understand the overall design). So do we need to mark the
"garbage" hints for DELETE with a index scan?  The case in my mind is:

CREATE TABLE t(a INT, B int);
CREATE INDEX t_a_idx on t(a);
CREATE INDEX t_b_idx on t(b);

DELETE FROM t WHERE b = 1;

If the delete goes with Index Scan of t_b_idx, we still have the chances
to mark hints on t_b_idx, so that it can be useful during index split?

-- 
Best Regards
Andy Fan




pgsql-hackers by date:

Previous
From: Jacob Champion
Date:
Subject: Re: [PATCH] pg_stat_activity: make slow/hanging authentication more visible
Next
From: Peter Geoghegan
Date:
Subject: Re: Deleting older versions in unique indexes to avoid page splits