pgsql: Fix interaction of log_line_prefix's query_id and log_statement - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: Fix interaction of log_line_prefix's query_id and log_statement
Date
Msg-id E1lYthS-0003b9-OF@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(+)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: adjust query id feature to use pg_stat_activity.query_id
Next
From: Tom Lane
Date:
Subject: pgsql: Fix under-parenthesized XLogRecHasBlockRef() macro.