Fix interaction of log_line_prefix's query_id and log_statement

Bruce Momjian <bruce@momjian.us>

Commit: db01f797dd48f826c62e1b8eea70f11fe7ff3efc
Author: Bruce Momjian <bruce@momjian.us>
Date: 2021-04-20T16:57:59Z
Releases: 14.0
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

Files

PathChange+/−
doc/src/sgml/config.sgml modified +10 −0
src/backend/utils/activity/backend_status.c modified +1 −0

Documentation touched