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/
[email protected]
Author: Julien Rouhaud
+
+
+ The %Q escape always reports a zero identifier
+ for lines output by because
+ log_statement generates output before an
+ identifier can be calculated, including invalid statements for
+ which an identifier cannot be calculated.
+
+
lbeentry.st_state = STATE_UNDEFINED;
lbeentry.st_progress_command = PROGRESS_COMMAND_INVALID;
lbeentry.st_progress_command_target = InvalidOid;
+ lbeentry.st_query_id = UINT64CONST(0);
/*
* we don't zero st_progress_param here to save cycles; nobody should