pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix interaction of log_line_prefix's query_id and log_statement
Date: Tue, 20 Apr 2021 16:58:10 +0000
Message-ID: <E1lYthS-0003b9-OF@gemulon.postgresql.org> (raw)

Fix interaction of log_line_prefix's query_id and log_statement

log_statement is issued before query_id can be computed, so properly
clear the value, and document the interaction.

Reported-by: Fujii Masao, Michael Paquier

Discussion: https://postgr.es/m/YHPkU8hFi4no4NSw@paquier.xyz

Author: Julien Rouhaud

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/db01f797dd48f826c62e1b8eea70f11fe7ff3efc

Modified Files
--------------
doc/src/sgml/config.sgml                    | 10 ++++++++++
src/backend/utils/activity/backend_status.c |  1 +
2 files changed, 11 insertions(+)



Message-ID: <E1lYthS-0003b9-OF@gemulon.postgresql.org>
Permalink:  ../E1lYthS-0003b9-OF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lYthS-0003b9-OF@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: bruce@momjian.us
  Subject: Re: pgsql: Fix interaction of log_line_prefix's query_id and log_statement
  In-Reply-To: <E1lYthS-0003b9-OF@gemulon.postgresql.org>
  References: <E1lYthS-0003b9-OF@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox