Re: Printing backtrace of postgres processes
От
vignesh C
Тема
Re: Printing backtrace of postgres processes
Дата
Msg-id
CALDaNm1uWKn8KGD0q8HqCPhxSUDKWCEW55aidOiJwd+vfaB+gg@mail.gmail.com
Ответ на
Re: Printing backtrace of postgres processes (Andres Freund)
Список
Дерево обсуждения
Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Robert Haas <robertmhaas@gmail.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Robert Haas <robertmhaas@gmail.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes Robert Haas <robertmhaas@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Printing backtrace of postgres processes Dilip Kumar <dilipbalaut@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Robert Haas <robertmhaas@gmail.com>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Robert Haas <robertmhaas@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Daniel Gustafsson <daniel@yesql.se>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Dilip Kumar <dilipbalaut@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes Dilip Kumar <dilipbalaut@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes "Andres Freund" <andres@anarazel.de>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes Tom Lane <tgl@sss.pgh.pa.us>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes Andres Freund <andres@anarazel.de>
Re: Printing backtrace of postgres processes Craig Ringer <craig.ringer@enterprisedb.com>
Re: Printing backtrace of postgres processes vignesh C <vignesh21@gmail.com>
On Wed, Jan 27, 2021 at 10:40 PM Andres Freund wrote:
>
> Hi,
>
> On 2021-01-27 19:05:16 +0530, vignesh C wrote:
>
> > /*
> > + * LogBackTrace
> > + *
> > + * Get the backtrace and log the backtrace to log file.
> > + */
> > +void
> > +LogBackTrace(void)
> > +{
> > + int save_errno = errno;
> > +
> > + void *buf[100];
> > + int nframes;
> > + char **strfrms;
> > + StringInfoData errtrace;
> > +
> > + /* OK to process messages. Reset the flag saying there are more to do. */
> > + PrintBacktracePending = false;
>
> ISTM that it'd be better to do this in the caller, allowing this
> function to be used outside of signal triggered backtraces.
>
> >
> > +extern void LogBackTrace(void); /* Called from EmitProcSignalPrintCallStack */
>
> I don't think this comment is correct anymore?
Thanks for the comments, I have fixed and attached an updated patch
with the fixes for the same.
Thoughts?
Regards,
Vignesh
В списке pgsql-hackers по дате отправления
От: Alexey Kondratov
Дата: