| From: | Michael Paquier <michael(at)paquier(dot)xyz> |
|---|---|
| To: | Raja Sai pranav <rajasaipranav0(at)gmail(dot)com> |
| 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-28 07:53:44 |
| Message-ID: | awqIiIkvqSvTUOOJ@paquier.xyz |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
On Wed, Nov 25, 2026 at 03:01:23PM +0900, Michael Paquier wrote:
> So, I could see the argument of the extra check as a defense in depth
> measure, at least. We document that in FindStreamingStart() that we
> accept segments from external sources, and it would be possible that
> these are considered correct under pg_receivewal but not under what
> lz4 thinks is correct, so I'd tend to think that a backpatch down to
> v15 (where this code has been added) is an acceptable thing to do
> here.
Putting my head down on that, I'm OK with the backpatch as there is an
argument in this early check to be faster than a CRC32 failure on a
WAL record, something that we'd only be able to find at replay time.
Tweaked the warning message a bit, removed the test as it feels like
bloat (still useful to prove the point), and applied the result down
to v15 where this has been introduced.
@idrissaajalloh: I was not sure how to credit you in the commit logs
for the report, as there is no name associated to your email address
that I could use..
--
Michael
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Shlok Kyal | 2026-11-28 07:07:11 | Re: Logical replication commits duplicates in DEFERRABLE unique indexes |