Add error codes to some PANIC/FATAL errors reports
authorDaniel Gustafsson <[email protected]>
Wed, 3 Apr 2024 07:19:25 +0000 (09:19 +0200)
committerDaniel Gustafsson <[email protected]>
Wed, 3 Apr 2024 07:19:25 +0000 (09:19 +0200)
commit226261f387fd8b44420ad03298ef09d83571f9b1
treedf760321ed16c192ca930863e37164f689e7383f
parentc627d944e6c2620fb3b28f2e4b27e19212f84045
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 <[email protected]>
Discussion: https://postgr.es/m/CAN55FZ1k8LgLEqncPGmz_fWnrobV6bjABOTH4tOWta6xNcPQig@mail.gmail.com
src/backend/access/transam/xlog.c
src/backend/utils/cache/relcache.c