Re: [PROPOSAL] Doublewrite Buffer as an alternative torn page protection to Full Page Write - Mailing list pgsql-hackers

From 陈宗志
Subject Re: [PROPOSAL] Doublewrite Buffer as an alternative torn page protection to Full Page Write
Date
Msg-id CAGbZs7hQMU-eJv07vrGRjXkcp+7cxPSMTsJJ8NVR-u9yfNju=A@mail.gmail.com
Whole thread
In response to Re: [PROPOSAL] Doublewrite Buffer as an alternative torn page protection to Full Page Write  (wenhui qiu <qiuwenhuifx@gmail.com>)
List pgsql-hackers
Hi,

> This test is completely meaningless. Just as you wouldn't set
> innodb_redo_log_capacity=Minimum Value,
> innodb_max_dirty_pages_pct=Minimum Value
> You used an extreme example to prove the double write.Why didn't you
> compare using best practices?

I wouldn't be so quick to dismiss these results. The configuration
was deliberately chosen to trigger more frequent checkpoints. As I
mentioned in my initial email, more frequent checkpoints strictly bound
the amount of WAL that needs to be replayed, resulting in much faster
crash recovery.

The entire ARIES paper heavily emphasizes optimizing crash recovery
time in database design. Minimizing recovery time is a fundamental
database capability, and we shouldn't rely solely on High Availability
(HA) switchovers to mask or solve crash recovery problems.

Actually, I have always felt that PostgreSQL's minimum limit of 30s
for `checkpoint_timeout` is a bit too restrictive. Ideally, the system
should allow for even higher frequency checkpoints. Setting it to a
lower value, such as 10s, could achieve the exact same effect of
strictly bounding recovery time. This test simulates an environment
where a very aggressive RTO (Recovery Time Objective) is required,
which is a highly practical scenario, not just an extreme edge case.

Regards,
Baotiao



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUG?] estimate_hash_bucket_stats uses wrong ndistinct for avgfreq
Next
From: "Jonathan Gonzalez V."
Date:
Subject: [oauth] Add TLS support to OAuth tests