| From: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
|---|---|
| To: | solai v <solai(dot)cdac(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, cca5507 <cca5507(at)qq(dot)com> |
| Subject: | Re: Bug? pg_rewind produces unusable but starting database with standby recovery |
| Date: | 2026-11-28 12:44:10 |
| Message-ID: | CAN4CZFMxXory1XDg7UrtnMNHJxAQNOqpRFhmtifxusO82oojYg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I tried to look into a combination of 'all recent rewind patches' and
do a few LLM-review passes over them together.
During that I found a problem with my patch: it only works for the
first startup attempt. Without signal files the server enters archive
recovery because of the backup label, but that is renamed befere redo
starts. The second start is plain crash recovery,
LocalMinRecoveryPoint isn't set and the server opens.
first start: FATAL: WAL ends before consistent recovery point
second start: LOG: database system is ready to accept connections
FATAL: could not open relation with OID 2610
v2 compares the end of the WAL with minRecoveryPoint in pg_control
instead, and the test starts the server twice.
This also means that the check now applies to every crash recovery,
for example to a standby that is restarted without standby.signal and
without all of its WAL. I think failing is correct there too, but it's
more than what v1 did?
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Enforce-minRecoveryPoint-check-regardless-of-arch.patch | text/x-patch | 11.3 KB |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Zsolt Parragi | 2026-11-28 12:13:58 | Re: pg_rewind WAL segments deletion pitfall |