Report expected contrecord length on mismatch
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 4 Sep 2020 18:58:32 +0000 (14:58 -0400)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 4 Sep 2020 18:58:32 +0000 (14:58 -0400)
commitf43e295f68c3e04ef891627f62016a5b3d8ed4a8
tree5d9992572600ec84864325d21a60c7a66df825f6
parent38a2d703298c9a891dc9c24c0c087f417f555c70
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@sss.pgh.pa.us>
Discussion: https://postgr.es/m/20200903212152.GA15319@alvherre.pgsql
src/backend/access/transam/xlogreader.c