mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Revert "Add GUC backtrace_on_internal_error"
This reverts commit a740b213d4.
Subsequent discussion showed that there was interest in a more general
facility to configure when server log events would produce backtraces,
and this existing limited way couldn't be extended in a compatible
way. So the consensus was to revert this for PostgreSQL 17 and
reconsider this topic for PostgreSQL 18.
Discussion: https://www.postgresql.org/message-id/flat/CAGECzQTChkvn5Xj772LB3%3Dxo2x_LcaO5O0HQvXqobm1xVp6%2B4w%40mail.gmail.com#764bcdbb73e162787e1ad984935e51e3
This commit is contained in:
@@ -497,11 +497,9 @@ errfinish(const char *filename, int lineno, const char *funcname)
|
||||
|
||||
/* Collect backtrace, if enabled and we didn't already */
|
||||
if (!edata->backtrace &&
|
||||
((edata->funcname &&
|
||||
backtrace_functions &&
|
||||
matches_backtrace_functions(edata->funcname)) ||
|
||||
(edata->sqlerrcode == ERRCODE_INTERNAL_ERROR &&
|
||||
backtrace_on_internal_error)))
|
||||
edata->funcname &&
|
||||
backtrace_functions &&
|
||||
matches_backtrace_functions(edata->funcname))
|
||||
set_backtrace(edata, 2);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user