public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jeff Davis <[email protected]>
To: Aleksander Alekseev <[email protected]>
To: Postgres hackers <[email protected]>
Cc: Michael Paquier <[email protected]>
Cc: [email protected]
Cc: Nathan Bossart <[email protected]>
Cc: Masahiko Sawada <[email protected]>
Subject: Re: Incorrect handling of OOM in WAL replay leading to data loss
Date: Tue, 01 Aug 2023 16:39:54 -0700
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAJ7c6TN44p8zkVsj-MbGO8-dDg13Ci3UJEAOd-an4uY27rpPwg@mail.gmail.com>
References: <ZMh/[email protected]>
<CAJ7c6TN44p8zkVsj-MbGO8-dDg13Ci3UJEAOd-an4uY27rpPwg@mail.gmail.com>
On Tue, 2023-08-01 at 16:14 +0300, Aleksander Alekseev wrote:
> Probably I'm missing something, but if memory allocation is required
> during WAL replay and it fails, wouldn't it be a better solution to
> log the error and terminate the DBMS immediately?
We need to differentiate between:
1. No valid record exists and it must be the end of WAL; LOG and start
up.
2. A valid record exists and we are unable to process it (e.g. due to
OOM); PANIC.
Regards,
Jeff Davis
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: Incorrect handling of OOM in WAL replay leading to data loss
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox