| From: | surya poondla <suryapoondla4(at)gmail(dot)com> |
|---|---|
| To: | Paul Kim <mok03127(at)gmail(dot)com>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, bharath(dot)rupireddyforpostgres(at)gmail(dot)com |
| Subject: | Re: Be strict when request to flush past end of WAL in WaitXLogInsertionsToFinish |
| Date: | 2026-12-03 20:59:08 |
| Message-ID: | CAOVWO5rUUzx1A6rskr45F5g0efd3okh3=Bg5wg=Tm=_H0KcsTg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi Andrey, Paul,
I tested v9 on master (5681f0cfa5a). It builds without warnings with
assertions enabled. I ran the same scenario as the new 039 test: pad WAL
until the insert position is 24 bytes before a segment boundary, then call
pg_switch_wal(). With v9, pg_switch_wal() returns the boundary, and the log
shows no "request to flush past end of generated WAL" message. With the fix
reverted, the walwriter logs that message for boundary + 40 and then fails
Assert("Insert >= Write"). v8 gives the same results as v9.
+1 to v9 for master and v8 for the back branches. v9 applies to
REL_19_STABLE but not to REL_15 through REL_18, which lack
WALINSERT_SPECIAL_SWITCH, while v8 applies to all of them with git am -3.
So that split also keeps the back-patch mechanical.
I also agree with Paul about keeping v8's commit-message details.
Regards,
Surya Poondla
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Alexander Korotkov | 2026-12-03 20:28:51 | Re: test: avoid redundant standby catchup in 049_wait_for_lsn |