Re: PATCH: Unlogged tables re-initialization tests

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: PATCH: Unlogged tables re-initialization tests
Дата
Msg-id 20180313164642.4fkgzox3rugtonne@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: PATCH: Unlogged tables re-initialization tests  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
Ответы Re: PATCH: Unlogged tables re-initialization tests  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Dagfinn Ilmari Mannsåker wrote:

> $SIG{__DIE__} gets called even for exceptions that would be caught by a
> surrunding eval block, so this should at the very least be:
> 
>     $SIG{__DIE__} = sub { BAIL_OUT(@_) unless $^S };
> 
> However, that is still wrong, because die() and BAIL_OUT() mean
> different things: die() aborts the current test script, while BAIL_OUT()
> aborts the entire 'prove' run, i.e. all subsequent scripts in the same
> test directory.

Sounds like 'die' is the correct thing, then, and that BAIL_OUT should
be called sparingly ... for example this one in PostgresNode::start
seems like an overreaction:
    BAIL_OUT("node \"$name\" is already running") if defined $self->{_pid};

Yes?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: PATCH: Exclude temp relations from base backup
Следующее
От: Michail Nikolaev
Дата:
Сообщение: Re: [WIP PATCH] Index scan offset optimisation using visibility map