pgsql: Report expected contrecord length on mismatch

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Report expected contrecord length on mismatch
Date: 2020-09-04 18:59:53
Message-ID: E1kEGwD-0002AV-Af@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Report expected contrecord length on mismatch

When reading a WAL record fails to find continuation record(s) of the
proper length, report what it expects, for clarity.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/20200903212152.GA15319@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/f43e295f68c3e04ef891627f62016a5b3d8ed4a8

Modified Files
--------------
src/backend/access/transam/xlogreader.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2020-09-04 19:11:11 pgsql: Fix bogus MaxAllocSize check in logtape.c.
Previous Message Tom Lane 2020-09-04 18:32:49 pgsql: Remove some more useless assignments.