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

From Teodor Sigaev
Subject Re: [PATCH] Microvacuum for gist.
Date
Msg-id 55F98C75.3070600@sigaev.ru
Whole thread Raw
In response to Re: [PATCH] Microvacuum for gist.  (Anastasia Lubennikova <a.lubennikova@postgrespro.ru>)
Responses Re: [PATCH] Microvacuum for gist.  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
> But It seems to me that it would be better to rewrite all mentions of
> TupleDelete to MultiDelete in gist code.

Sure. Patch is attached, and it changes WAL format, so be carefull with testing.
Please, have a look.

Also in attach scripts reproduce bug from Jeff's report:
g.pl - creates and fills test table
w.pl - worker, could run in several session

Usage
perl g.pl | psql contrib_regression
perl w.pl |  psql contrib_regression | grep 'UPDATE 0'

and killall -9 postgres while w.pl is running. Recovery will fail with high
probability.

Thank you, Jeff, for report.
--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Attachment

pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: BUFFER_LOCK_* synonyms
Next
From: Nicolas Barbier
Date:
Subject: Re: [PROPOSAL] Covering + unique indexes.