Re: Log the location field before any backtrace

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-09T11:25:43Z
Lists: pgsql-hackers
> 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

cheers ./daniel


Commits

  1. Log the location field before any backtrace