Add error codes to some PANIC/FATAL errors reports
This adds errcodes to a set of PANIC and FATAL errors in xlog.c
and relcache.c, which previously had no errcode at all set, in
order to make fleetwide analysis of errorlogs easier. There are
many more ereport/elogs left which could benefit from having an
errcode but this at least makes a dent in the issue.
Author: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/CAN55FZ1k8LgLEqncPGmz_fWnrobV6bjABOTH4tOWta6xNcPQig@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/226261f387fd8b44420ad03298ef09d83571f9b1
Modified Files
--------------
src/backend/access/transam/xlog.c | 77 +++++++++++++++++++++++++-------------
src/backend/utils/cache/relcache.c | 26 +++++++++----
2 files changed, 71 insertions(+), 32 deletions(-)