Re: Printing backtrace of postgres processes
vignesh C <vignesh21@gmail.com>
From: vignesh C <vignesh21@gmail.com>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: torikoshia <torikoshia@oss.nttdata.com>, Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-01-25T05:49:38Z
Lists: pgsql-hackers
On Mon, Jan 24, 2022 at 10:06 PM Fujii Masao <masao.fujii@oss.nttdata.com> wrote: > > > > On 2022/01/24 16:35, torikoshia wrote: > > On 2022-01-14 19:48, Bharath Rupireddy wrote: > >> On Sat, Nov 20, 2021 at 11:50 AM Bharath Rupireddy > >> <bharath.rupireddyforpostgres@gmail.com> wrote: > >>> > >>> On Fri, Nov 19, 2021 at 4:07 PM vignesh C <vignesh21@gmail.com> wrote: > >>> > The Attached v15 patch has the fixes for the same. > >>> > >>> Thanks. The v15 patch LGTM and the cf bot is happy hence marking it as RfC. > >> > >> The patch was not applying because of the recent commit [1]. I took > >> this opportunity and tried a bunch of things without modifying the > >> core logic of the pg_log_backtrace feature that Vignesh has worked on. > > I have one question about this feature. When the PID of auxiliary process like archiver is specified, probably the function always reports the same result, doesn't it? Because, for example, the archiver always logs its backtrace in HandlePgArchInterrupts(). It can be either from HandlePgArchInterrupts in pgarch_MainLoop or from HandlePgArchInterrupts in pgarch_ArchiverCopyLoop, since the archiver functionality is mainly in these functions. 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