On 2018-Nov-30, Sergei Kornilov wrote:
> Hello
>
> I can not build current HEAD cleanly. I got warning:
>
> > postgres.c: In function ‘check_log_duration’:
> > postgres.c:2254:17: warning: ‘in_sample’ may be used uninitialized in this function [-Wmaybe-uninitialized]
> > if ((exceeded && in_sample) || log_duration)
Ah, I feared that some compiler would not be smart enough to be silent
about that. I hope it does not emit a warning with this patch?
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services