Re: [DESIGN] Incremental checksums

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [DESIGN] Incremental checksums
Дата
Msg-id 20150715082424.GD5520@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [DESIGN] Incremental checksums  (Amit Kapila <amit.kapila16@gmail.com>)
Список pgsql-hackers
On 2015-07-15 12:48:40 +0530, Amit Kapila wrote:
> If during scan of a relation, after doing checksum for half of the
> blocks in relation, system crashes, then in the above scheme a
> restart would need to again read all the blocks even though some
> of the blocks are already checksummed in previous cycle, this is
> okay if it happens for few small or medium size relations, but assume
> it happens when multiple large size relations are at same state
> (half blocks are checksummed) when the crash occurs, then it could
> lead to much more IO than required.

I don't think this is worth worrying about. If you crash frequently
enough for this to be a problem you should fix that.  Adding complexity
for such an uncommon case spreads the cost to many more people.



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: security labels on databases are bad for dump & restore
Следующее
От: Antonin Houska
Дата:
Сообщение: Re: Parallel Seq Scan