| From: | vignesh C <vignesh21(at)gmail(dot)com> |
|---|---|
| To: | Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
| Cc: | torikoshia <torikoshia(at)oss(dot)nttdata(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Printing backtrace of postgres processes |
| Date: | 2022-01-29 02:36:31 |
| Message-ID: | CALDaNm0rPUq0-FZXmTV6gFmQO7huwrJXxz1y4ag2za7NA0jr5Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Jan 28, 2022 at 1:54 PM Bharath Rupireddy
<bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
>
> On Thu, Jan 27, 2022 at 10:45 AM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> >
> > On Wed, Jan 26, 2022 at 11:07 AM Bharath Rupireddy
> > <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
> > >
> > > On Tue, Jan 25, 2022 at 12:00 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> > > > Thanks for the comments, attached v17 patch has the fix for the same.
> > >
> > > Have a minor comment on v17:
> > >
> > > can we modify the elog(LOG, to new style ereport(LOG, ?
> > > + elog(LOG_SERVER_ONLY, "current backtrace:%s", errtrace.data);
> > >
> > > /*----------
> > > * New-style error reporting API: to be used in this way:
> > > * ereport(ERROR,
> > > * errcode(ERRCODE_UNDEFINED_CURSOR),
> > > * errmsg("portal \"%s\" not found", stmt->portalname),
> > > * ... other errxxx() fields as needed ...);
> > > *
> >
> > Attached v18 patch has the changes for the same.
>
> Thanks. The v18 patch LGTM. I'm not sure if the CF bot failure is
> related to the patch - https://cirrus-ci.com/task/5633364051886080
I felt this test failure is not related to this change. Let's wait and
see the results of the next run. Also I noticed that this test seems
to have failed many times in the buildfarm too recently:
https://buildfarm.postgresql.org/cgi-bin/show_failures.pl?max_days=60&branch=HEAD&member=&stage=recoveryCheck&filter=Submit
Regards,
Vignesh
| Attachment | Content-Type | Size |
|---|---|---|
| v18-0001-Add-function-to-log-the-backtrace-of-the-specifi.patch | text/x-patch | 30.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Julien Rouhaud | 2022-01-29 02:50:50 | Re: [PATCH] Disable bgworkers during servers start in pg_upgrade |
| Previous Message | Michael Paquier | 2022-01-29 02:19:12 | Re: make MaxBackends available in _PG_init |