Re: [HACKERS] use strict in all Perl programs - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [HACKERS] use strict in all Perl programs
Date
Msg-id CAB7nPqTBwGNhc0guJtSS+rurj8UNaO6=Be+JCD2EvgJV+riS=w@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] use strict in all Perl programs  (David Steele <david@pgmasters.net>)
List pgsql-hackers
On Fri, Jan 6, 2017 at 11:13 PM, David Steele <david@pgmasters.net> wrote:
> With regard to warnings, I prefer to use:
>
> use warnings FATAL => qw(all);
>
> This transforms all warnings into errors rather than just printing a message
> to stderr, which is very easy to miss among the other output.

Interesting. A couple of warnings have slipped a couple of times in
some TAP tests like those of pg_rewind, so it could be useful to
switch to that at least for the tests by detault.
-- 
Michael



pgsql-hackers by date:

Previous
From: David Steele
Date:
Subject: Re: [HACKERS] use strict in all Perl programs
Next
From: David Steele
Date:
Subject: Re: [HACKERS] Support for pg_receivexlog --format=plain|tar