Re: GIN data corruption bug(s) in 9.6devel - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: GIN data corruption bug(s) in 9.6devel
Date
Msg-id 56CDDFA4.1030903@sigaev.ru
Whole thread Raw
In response to Re: GIN data corruption bug(s) in 9.6devel  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: GIN data corruption bug(s) in 9.6devel
List pgsql-hackers
Thank you for remembering this problem, at least for me.

>> Well, turns out there's a quite significant difference, actually. The
>> index sizes I get (quite stable after multiple runs):
>>
>>     9.5 : 2428 MB
>>     9.6 + alone cleanup : 730 MB
>>     9.6 + pending lock : 488 MB
Interesting, I don't see why alone_cleanup and pending_lock are so differ. I'd
like to understand that, but does somebody have an good theory? The single point
in pending_lock patch is an suspicious exception in ProcSleep, this exception
may cause problem in future.

>>
>> So that's quite a significant difference, I guess. The load duration for
>> each version look like this:
>>
>>     9.5                 : 1415 seconds
>>     9.6 + alone cleanup : 1310 seconds
>>     9.6 + pending lock  : 1380 seconds
>>
>> I'd say I'm happy with sacrificing ~5% of time in exchange for ~35%
>> reduction of index size.
I think, alone_cleanup patch is faster because regular insert could break its
cleanup process if autovacuum waits to begin work on cleanup. So, insert process
could returns earlier from pending cleanup process.

In attachment just rebased v2 alone_cleanup patch.
--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Attachment

pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Allow to specify (auto-)vacuum cost limits relative to the database/cluster size?
Next
From: Alvaro Herrera
Date:
Subject: Re: Allow to specify (auto-)vacuum cost limits relative to the database/cluster size?