aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2023-12-30 11:11:26 +0100
committerPeter Eisentraut <peter@eisentraut.org>2023-12-30 11:43:57 +0100
commita740b213d4b4d3360ad0cac696e47e5ec0eb8864 (patch)
tree3a685f9b8eb1b6b7599ddb7926647f2ade4c5e59 /src/backend/access/gist/gistscan.c
parent9d49837d7144e27ad8ea8918acb28f9872cb1585 (diff)
downloadpostgresql-a740b213d4b4d3360ad0cac696e47e5ec0eb8864.tar.gz
postgresql-a740b213d4b4d3360ad0cac696e47e5ec0eb8864.zip
Add GUC backtrace_on_internal_error
When enabled (default off), this logs a backtrace anytime elog() or an equivalent ereport() for internal errors is called. This is not well covered by the existing backtrace_functions, because there are many equally-worded low-level errors in many functions. And if you find out where the error is, then you need to manually rewrite the elog() to ereport() to attach the errbacktrace(), which is annoying. Having a backtrace automatically on every elog() call could be very helpful during development for various kinds of common errors from palloc, syscache, node support, etc. Discussion: https://www.postgresql.org/message-id/flat/ba76c6bc-f03f-4285-bf16-47759cfcab9e@eisentraut.org
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions