git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9d49837) | patch
Add GUC backtrace_on_internal_error
2023年12月30日 10:11:26 +0000 (11:11 +0100)
2023年12月30日 10:43:57 +0000 (11:43 +0100)
commit a740b213d4b4d3360ad0cac696e47e5ec0eb8864
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
doc/src/sgml/config.sgml diff | blob | blame | history
src/backend/utils/error/elog.c diff | blob | blame | history
src/backend/utils/misc/guc_tables.c diff | blob | blame | history
src/include/utils/guc.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /