Hi!

> 19 июля 2018 г., в 23:26, Andrey Borodin <x4...@yandex-team.ru> написал(а):
> 
> I'm working on triggering left split during vacuum. Will get back when done. 
> Thanks!

Here's patch including some messy hacks to trigger NSN and FollowRight jumps 
during VACUUM.

To trigger FollowRight GiST sometimes forget to clear follow-right marker 
simulating crash of an insert. This fills logs with "fixing incomplete split" 
messages. Search for "REMOVE THIS" to disable these ill-behavior triggers.
To trigger NSN jump GiST allocate empty page after every real allocation.

gistvacuumcleanup() was constantly generating left jumps because there was used 
0 instead of real start NSN, I moved NSN acquisition to gistvacuumscan(). Also 
fixed some comments.

gistvacuumcleanup() will have same effect as gistbulkdelete(), is it OK?

To reproduce left-jumps run ./rescantest.sh
Script contain variables for my local paths.


Best regards, Andrey Borodin.

Attachment: 0001-Physical-GiST-scan-in-VACUUM-v13.patch
Description: Binary data

Reply via email to