Re: [PATCH] Microvacuum for gist. - Mailing list pgsql-hackers

From Anastasia Lubennikova
Subject Re: [PATCH] Microvacuum for gist.
Date
Msg-id 55BF7BFF.2030204@postgrespro.ru
Whole thread Raw
In response to Re: [PATCH] Microvacuum for gist.  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Responses Re: [PATCH] Microvacuum for gist.
List pgsql-hackers

On Mon, Aug 3, 2015 at 12:27 PM, Anastasia Lubennikova <a.lubennikova@postgrespro.ru> wrote:
1) Test and results are in attachments. Everything seems to work as expected.
2) I dropped these notices. It was done only for debug purposes. Updated patch is attached.
3) fixed

Good! Another couple of notes from me:
1) I think gistvacuumpage() and gistkillitems() need function-level comments.
2) ItemIdIsDead() can be used in index scan like it's done in _bt_checkkeys().

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
 
I've added some comments.
ItemIdIsDead() is used now (just skip dead tuples as not matching the quals).
And there is one else check of LSN in gistkillitems to make sure that page was not changed between reads.
-- 
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachment

pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: RLS restrictive hook policies
Next
From: Alvaro Herrera
Date:
Subject: Re: Minimum tuple threshold to decide last pass of VACUUM