Re: Fix for timestamp lag issue from emit_log_hook when GUC log_line_prefix has '%m'

2024-03-17 Thread Kambam Vinay
Thanks Michael for the review. Agree with your comment on the patch. updated the patch with recommended change. Thanks, Vinay On Mon, Mar 11, 2024 at 1:13 PM Michael Paquier wrote: > On Sat, Mar 09, 2024 at 09:09:39PM +0530, Kambam Vinay wrote: > > We observed a slight lag in

Fix for timestamp lag issue from emit_log_hook when GUC log_line_prefix has '%m'

2024-03-09 Thread Kambam Vinay
Hi, We observed a slight lag in timestamp for a few logs from the emit_log_hook hook implementation when the log_line_prefix GUC has '%m'. Upon debugging, we found that the saved_timeval_set variable is set to 'true' in get_formatted_log_time() but is not reset to 'false' until the next call to