From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Robert Haas <robertmhaas(at)gmail(dot)com>, Michael Banck <michael(dot)banck(at)credativ(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Online verification of checksums |
Date: | 2019-03-07 02:16:41 |
Message-ID: | 20190307021641.GD17293@paquier.xyz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, Mar 06, 2019 at 08:53:57PM +0100, Tomas Vondra wrote:
> Not sure. AFAICS that would to require a single transaction, and if we
> happen to add some sort of throttling (which is a feature request I'd
> expect pretty soon to make it usable on live clusters) that might be
> quite long-running. So, not great.
>
> If we want to run it from the server itself, then I guess a background
> worker would be a better solution. Incidentally, that's something I've
> been toying with some time ago, see [1].
It does not prevent having a SQL function which acts as a wrapper on
top of the whole routine logic, does it? I think that it would be
nice to have the possibility to target a specific relation and a
specific page, as well as being able to check fully a relation at
once. It gets easier to check for page ranges this way, and the
throttling can be part of the function doing a full-relation check.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Langote | 2019-03-07 02:17:11 | Re: BUG #15672: PostgreSQL 11.1/11.2 crashed after dropping a partition table |
Previous Message | Kyotaro HORIGUCHI | 2019-03-07 02:15:58 | Re: [bug fix] Produce a crash dump before main() on Windows |