Re: Log the location field before any backtrace

Alvaro Herrera <alvherre@2ndquadrant.com>

From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-09T16:31:38Z
Lists: pgsql-hackers
On 2020-Jul-09, Daniel Gustafsson wrote:

> > On 9 Jul 2020, at 11:17, Peter Eisentraut <peter.eisentraut@2ndquadrant.com> wrote:
> > 
> > In PG13, we added the ability to add backtraces to the log output. After some practical experience with it, I think the order in which the BACKTRACE and the LOCATION fields are printed is wrong.  I propose we put the LOCATION field before the BACKTRACE field, not after.  This makes more sense because the location is effectively at the lowest level of the backtrace.
> 
> Makes sense, +1

Likewise

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



Commits

  1. Log the location field before any backtrace