| From: | Raja Sai pranav <rajasaipranav0(at)gmail(dot)com> |
|---|---|
| To: | michael(at)paquier(dot)xyz |
| Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org, idrissaajalloh(at)gmail(dot)com |
| Subject: | Re: BUG #19890: pg_receivewal advances past a truncated LZ4 WAL segment |
| Date: | 2026-11-26 07:15:11 |
| Message-ID: | CAPHduZC8v48CXiOxYx-gE+jGQs4qO3rKXjMVJVswhDqy9Ny6LQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Tue, Nov 25, 2026 at 6:01 AM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> The only way to see this failure would be a segment that is not
> fsync-ed properly, leading to something cut earlier than it should.
> pg_receivewal *without* --no-sync, taken in isolation, already ensures
> that this will never happen.
Understood. A segment cut short like this needs either a run with --no-sync
or a segment copied in from another tool, so the extra check is defense in
depth.
> So, I could see the argument of the extra check as a defense in depth
> measure, at least. [...] I'd tend to think that a backpatch down to
> v15 (where this code has been added) is an acceptable thing to do
> here.
Agreed, v15 is where this code was added.
> I don't buy that the suggested test is worth the cycles spent on.
Fine with me to drop the test. If it helps, I will send a v2 without it.
I have no opinion on content checksums for HEAD.
Regards,
Sai Pranav
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Xuneng Zhou | 2026-11-26 07:51:31 | Re: Lost walsender wakeup stalls synchronous commits until the standby's next reply (16+) |
| Previous Message | Alexander Lakhin | 2026-11-26 07:00:01 | Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance |