Re: New GUC to sample log queries - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: New GUC to sample log queries
Date
Msg-id 20181130122259.mgsarkudxptq4z5w@alvherre.pgsql
Whole thread Raw
In response to Re: New GUC to sample log queries  (Sergei Kornilov <sk@zsrv.org>)
Responses Re: New GUC to sample log queries  (Sergei Kornilov <sk@zsrv.org>)
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Dmitry Dolgov
Date:
Subject: Re: GiST VACUUM
Next
From: Sergei Kornilov
Date:
Subject: Re: New GUC to sample log queries