Re: pgsql: Fix memory leak in pgbench - Mailing list pgsql-committers

From Masahiko Sawada
Subject Re: pgsql: Fix memory leak in pgbench
Date
Msg-id CAD21AoAZ4q93m2oTx2g62boyVTu7fXOJpLHqBFk8S1t6VM2zjw@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Fix memory leak in pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: pgsql: Fix memory leak in pgbench  (Michael Paquier <michael@paquier.xyz>)
List pgsql-committers
On Wed, Apr 10, 2019 at 3:10 PM Fabien COELHO <coelho@cri.ensmp.fr> wrote:
>
>
> Hello Masahiko-san,
>
> > This change leads a compiler warning on my machine:
> >
> > pgbench.c: In function ‘readCommandResponse’:
> > pgbench.c:2730: warning: ISO C90 forbids mixed declarations and code
>
> <https://www.postgresql.org/docs/devel/source-conventions.html> says:
>
> "Code in PostgreSQL should only rely on language features available in the
> C99 standard"
>
> So it should be all right wrt to warnings.
>
> However the pg style in the same page says that intermingling decl & code
> is not permitted, so the proposed patch should be applied.

Thank you! I didn't know the detail of that PostgreSQL supports C99
standard but I hope the warning will be fixed and coming patches will
still obey that rule.

Regards,

--
Masahiko Sawada
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center



pgsql-committers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: pgsql: Fix memory leak in pgbench
Next
From: Noah Misch
Date:
Subject: Re: pgsql: Avoid "could not reattach" by providing space forconcurrent all