pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Add backtrace support for error reporting
3+ messages / 3 participants
[nested] [flat]

* pgsql: Add backtrace support for error reporting
@ 2019-11-08 18:52 Alvaro Herrera <alvherre@alvh.no-ip.org>
  2019-11-08 22:29 ` Re: pgsql: Add backtrace support for error reporting Amit Langote <amitlangote09@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2019-11-08 18:52 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Add backtrace support for error reporting

Add some support for automatically showing backtraces in certain error
situations in the server.  Backtraces are shown on assertion failure;
also, a new setting backtrace_functions can be set to a list of C
function names, and all ereport()s and elog()s from the mentioned
functions will have backtraces generated.  Finally, the function
errbacktrace() can be manually added to an ereport() call to generate a
backtrace for that call.

Authors: Peter Eisentraut, Álvaro Herrera
Discussion: https://postgr.es/m//5f48cb47-bf1e-05b6-7aae-3bf2cd01586d@2ndquadrant.com
Discussion: https://postgr.es/m/CAMsr+YGL+yfWE=JvbUbnpWtrRZNey7hJ07+zT4bYJdVp4Szdrg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/71a8a4f6e36547bb060dbcc961ea9b57420f7190

Modified Files
--------------
configure                        |  61 +++++++++++++++++++-
configure.in                     |   4 ++
doc/src/sgml/config.sgml         |  26 +++++++++
src/backend/utils/error/assert.c |  13 +++++
src/backend/utils/error/elog.c   | 117 +++++++++++++++++++++++++++++++++++++++
src/backend/utils/misc/guc.c     |  85 ++++++++++++++++++++++++++++
src/include/pg_config.h.in       |   6 ++
src/include/utils/elog.h         |   3 +
src/include/utils/guc.h          |   2 +
9 files changed, 315 insertions(+), 2 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Add backtrace support for error reporting
  2019-11-08 18:52 pgsql: Add backtrace support for error reporting Alvaro Herrera <alvherre@alvh.no-ip.org>
@ 2019-11-08 22:29 ` Amit Langote <amitlangote09@gmail.com>
  2019-11-09 10:10   ` Re: pgsql: Add backtrace support for error reporting Julien Rouhaud <rjuju123@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Amit Langote @ 2019-11-08 22:29 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers@lists.postgresql.org

On Sat, Nov 9, 2019 at 3:52 Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:

> Add backtrace support for error reporting


Yay, thanks!

- Amit

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgsql: Add backtrace support for error reporting
  2019-11-08 18:52 pgsql: Add backtrace support for error reporting Alvaro Herrera <alvherre@alvh.no-ip.org>
  2019-11-08 22:29 ` Re: pgsql: Add backtrace support for error reporting Amit Langote <amitlangote09@gmail.com>
@ 2019-11-09 10:10   ` Julien Rouhaud <rjuju123@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Julien Rouhaud @ 2019-11-09 10:10 UTC (permalink / raw)
  To: Amit Langote <amitlangote09@gmail.com>; +Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>; pgsql-committers@lists.postgresql.org

On Fri, Nov 8, 2019 at 11:30 PM Amit Langote <amitlangote09@gmail.com> wrote:
>
> On Sat, Nov 9, 2019 at 3:52 Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
>>
>> Add backtrace support for error reporting
>
>
> Yay, thanks!

+1 that's very cool!





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2019-11-09 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08 18:52 pgsql: Add backtrace support for error reporting Alvaro Herrera <alvherre@alvh.no-ip.org>
2019-11-08 22:29 ` Amit Langote <amitlangote09@gmail.com>
2019-11-09 10:10   ` Julien Rouhaud <rjuju123@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox