Re: Online enabling of checksums

From: Andres Freund <andres(at)anarazel(dot)de>
To: Robert Haas <robertmhaas(at)gmail(dot)com>,Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>,Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>,Heikki Linnakangas <hlinnaka(at)iki(dot)fi>,Daniel Gustafsson <daniel(at)yesql(dot)se>,Michael Banck <michael(dot)banck(at)credativ(dot)de>,Greg Stark <stark(at)mit(dot)edu>,PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Online enabling of checksums
Date: 2018-07-26 17:35:16
Message-ID: 7F5BF812-B44C-4288-B5E3-16761AF8B875@anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On July 26, 2018 10:03:39 AM PDT, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>On Tue, Jun 26, 2018 at 7:45 AM, Magnus Hagander <magnus(at)hagander(dot)net>
>wrote:
>> PFA an updated version of the patch for the next CF. We believe this
>one
>> takes care of all the things pointed out so far.
>>
>> For this version, we "implemented" the
>MegaExpensiveRareMemoryBarrier() by
>> simply requiring a restart of PostgreSQL to initiate the conversion
>> background. That is definitely going to guarantee a memory barrier.
>It's
>> certainly not ideal, but restarting the cluster is still a *lot*
>better than
>> having to do the entire conversion offline. This can of course be
>improved
>> upon in the future, but for now we stuck to the safe way.
>
>Honestly, I feel like the bar for this feature ought to be higher than
>that.
>
>(I half-expect a vigorous discussion of whether I have set the bar for
>the features I've developed in the right place or not, but I think
>that's not really a fair response. If somebody thinks some feature I
>implemented should've been more baked, they might be right, but that's
>not what this thread is about. I'm giving you MY opinion about THIS
>patch, nothing more or less.)

+1

>Why can't we do better?

I don't think it's that hard to do better. IIRC I even outlined something before the freeze. If not, o certainly can (sketch: use procsignal based acknowledgment protocol, using a 64 bit integer. Useful for plenty other things).

Andres

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2018-07-26 17:39:30 Re: [HACKERS] [PATCH] kNN for SP-GiST
Previous Message Melanie Plageman 2018-07-26 17:30:22 Re: Making "COPY partitioned_table FROM" faster