Re: Make all Perl warnings fatal

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Re: Make all Perl warnings fatal
Дата
Msg-id CALj2ACUMXbNp2LJyoKWH-AHjzMKUEyzb6w4XAgN4FyJ4zq-hrw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Make all Perl warnings fatal  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Make all Perl warnings fatal
Список pgsql-hackers
On Fri, Jan 12, 2024 at 9:21 PM Bharath Rupireddy
<bharath.rupireddyforpostgres@gmail.com> wrote:
>
> On Fri, Jan 12, 2024 at 9:03 PM Peter Eisentraut <peter@eisentraut.org> wrote:
> >
> > I would put this code
> >
> >      my $core = $ret & 128 ? " (core dumped)" : "";
> >      die "psql exited with signal "
> >        . ($ret & 127)
> >        . "$core: '$$stderr' while running '@psql_params'"
> >        if $ret & 127;
> >      $ret = $ret >> 8;
> >
> > inside a if (defined $ret) block.
> >
> > Then the behavior would be that the whole function returns undef on
> > timeout, which is usefully different from returning 0 (and matches
> > previous behavior).
>
> WFM.

I've attached a patch for the above change.

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: sql-merge.html Compatibility section, typo.
Следующее
От: Daniel Gustafsson
Дата:
Сообщение: Re: initdb's -c option behaves wrong way?