postgresql/src/backend
Peter Eisentraut a740b213d4 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
2023-12-30 11:43:57 +01:00
..
access Fix incorrect data type choices in some read and write calls. 2023-12-27 11:02:53 -05:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Fix incorrect data type choices in some read and write calls. 2023-12-27 11:02:53 -05:00
bootstrap Remove distprep 2023-11-06 15:18:04 +01:00
catalog Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
commands Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
executor Fix BEFORE ROW trigger handling in cross-partition MERGE update. 2023-12-21 12:55:22 +00:00
foreign Improve "user mapping not found" error message 2023-11-30 05:34:28 +01:00
jit Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
lib Make binaryheap available to frontend code. 2023-09-18 12:18:33 -07:00
libpq Fix bugs in manipulation of large objects. 2023-12-15 13:55:05 -05:00
main Remove obsolete defense against strxfrm() bugs. 2023-04-20 13:20:14 +12:00
nodes Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
optimizer Make replace_relid() leave argument unmodified 2023-12-27 03:57:57 +02:00
parser Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
partitioning Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
po Translation updates 2023-08-07 12:39:30 +02:00
port Remove distprep 2023-11-06 15:18:04 +01:00
postmaster Initialize variable to placate compiler. 2023-12-27 08:45:23 -05:00
regex Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
replication Fix incorrect format placeholders 2023-12-27 17:39:10 +01:00
rewrite Add TupleDescGetDefault() 2023-09-27 18:52:40 +01:00
snowball Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
statistics Retire MemoryContextResetAndDeleteChildren() macro. 2023-11-15 13:42:30 -06:00
storage Make all Perl warnings fatal 2023-12-29 18:20:00 +01:00
tcop Add support for REINDEX in event triggers 2023-12-04 09:53:49 +09:00
tsearch Limit to_tsvector_byid's initial array allocation to something sane. 2023-09-25 11:50:28 -04:00
utils Add GUC backtrace_on_internal_error 2023-12-30 11:43:57 +01:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
meson.build Remove MSVC scripts 2023-12-20 09:44:37 +09:00
nls.mk Remove distprep 2023-11-06 15:18:04 +01:00