Re: Online enabling of checksums - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Online enabling of checksums
Date
Msg-id C9BED788-8459-492D-BC97-9B3BF9146C37@yandex-team.ru
Whole thread Raw
In response to Re: Online enabling of checksums  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Online enabling of checksums
List pgsql-hackers
Hi!

> 19 марта 2018 г., в 11:27, Heikki Linnakangas <hlinnaka@iki.fi> написал(а):
>
> Is there no way to stop the checksum helper once it's started? That seems rather user-unfriendly. I can imagine it
beinga pretty common mistake to call pg_enable_data_checksums() on a 10 TB cluster, only to realize that you forgot to
setthe cost limit, and that it's hurting queries too much. At that point, you want to abort. 
I've tried to pg_cancel_backend() and it worked.
But only if I cancel "checksum helper launcher" and then "checksum helper worker". If I cancel helper first - it spawns
new.

Magnus, Daniel, is it safe to cancel worker or launcher?

BTW, I have some questions on pg_verify_chechsums.
It does not check catalog version. It it true that it will work for any?
Also, pg_verify_chechsums will stop on short reads. But we do not stop on wrong checksum, may be we should not stop on
shortreads either? 

I agree with all of Heikki's comments.

Besides these I have no other questions, patch looks good.

Best regards, Andrey Borodin.

pgsql-hackers by date:

Previous
From: Anton Dignös
Date:
Subject: Re: IndexJoin memory problem using spgist and boxes
Next
From: Rushabh Lathia
Date:
Subject: Re: INOUT parameters in procedures