Re: Printing backtrace of postgres processes
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>, Robert Haas <robertmhaas@gmail.com>,
Tom Lane <tgl@sss.pgh.pa.us>, Andres Freund <andres@anarazel.de>,
Craig Ringer <craig.ringer@enterprisedb.com>, Peter Eisentraut <peter.eisentraut@enterprisedb.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-11-15T06:43:12Z
Lists: pgsql-hackers
On Mon, Nov 15, 2021 at 11:00 AM Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote: > > On Mon, Nov 15, 2021 at 10:34 AM vignesh C <vignesh21@gmail.com> wrote: > > > 2) I think "which is enough because the target process for logging of > > > backtrace is a backend" isn't valid anymore with 0002, righit? Please > > > remove it. > > > + * to call this function if we see PrintBacktracePending set. It is called from > > > + * CHECK_FOR_INTERRUPTS() or from process specific interrupt handlers, which is > > > + * enough because the target process for logging of backtrace is a backend. > > > > > > > Thanks for the comments, v11 patch attached at [1] has the changes for the same. > > > > Modified > > I don't see the above change in v12. Am I missing something? I still > see the comment "It is called from CHECK_FOR_INTERRUPTS(), which is > enough because the target process for logging of backtrace is a > backend.". This change is present in the 0002 (v12-0002-pg_print_backtrace-support-for-printing-backtrac.patch) patch. Regards, Vignesh
Commits
-
Perform apply of large transactions by parallel workers.
- 216a784829c2 16.0 cited
-
Enhance pg_log_backend_memory_contexts() for auxiliary processes.
- 790fbda90209 15.0 cited
-
Allow GRANT on pg_log_backend_memory_contexts().
- f0b051e322d5 15.0 cited
-
Move Perl test modules to a better namespace
- b3b4d8e68ae8 15.0 cited
-
Unify PostgresNode's new() and get_new_node() methods
- 201a76183e20 15.0 cited
-
Add backtrace support for error reporting
- 71a8a4f6e365 13.0 cited