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

From Sergei Kornilov
Subject Re: New GUC to sample log queries
Date
Msg-id 9645101543575886@myt6-27270b78ac4f.qloud-c.yandex.net
Whole thread Raw
In response to Re: New GUC to sample log queries  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: New GUC to sample log queries  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
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)

Should not we have such change?

> -        bool        in_sample;
> +        bool        in_sample = false;

thank you!

regards, Sergei


pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: de-deduplicate code in DML execution hooks in postgres_fdw
Next
From: Arthur Zakirov
Date:
Subject: Re: Add extension options to control TAP and isolation tests