diff options
author | Michael Paquier <michael@paquier.xyz> | 2020-10-02 09:31:50 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2020-10-02 09:31:50 +0900 |
commit | 9d0bd95fa90a7243047a74e29f265296a9fc556d (patch) | |
tree | d43829cc46989c2f8e7071fa40301aa8b6f7603b /src/backend/utils/adt/pgstatfuncs.c | |
parent | 49642530486852f8fef248964e563aaab25ecae7 (diff) | |
download | postgresql-9d0bd95fa90a7243047a74e29f265296a9fc556d.tar.gz postgresql-9d0bd95fa90a7243047a74e29f265296a9fc556d.zip |
Add block information in error context of WAL REDO apply loop
Providing this information can be useful for example when diagnosing
problems related to recovery conflicts or for recovery issues without
having to go through the output generated by pg_waldump to get some
information about the blocks a WAL record works on.
The block information is printed in the same format as pg_waldump. This
already existed in xlog.c for debugging purposes with -DWAL_DEBUG, so
adding the block information in the callback has required just a small
refactoring.
Author: Bertrand Drouvot
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/c31e2cba-efda-762c-f4ad-5c25e5dac3d0@amazon.com
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions