Re: recovery_min_apply_delay with a negative value

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: recovery_min_apply_delay with a negative value
Дата
Msg-id CAB7nPqR3Cikw7uSmHkGxFby9m5Q8ymLGKeoOADzhMFNDO+2yzQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: recovery_min_apply_delay with a negative value  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Ответы Re: recovery_min_apply_delay with a negative value  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Tue, Dec 30, 2014 at 4:30 AM, Fabrízio de Royes Mello
<fabriziomello@gmail.com> wrote:
>
>
> On Sun, Dec 28, 2014 at 12:31 PM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
>>
>> Hi all,
>>
>> While reviewing another patch, I have noticed that
>> recovery_min_apply_delay can have a negative value. And the funny part is
>> that we actually attempt to apply a delay even in this case, per se this
>> condition recoveryApplyDelay@xlog.c:
>>         /* nothing to do if no delay configured */
>>         if (recovery_min_apply_delay == 0)
>>                 return false;
>> Shouldn't we simply leave if recovery_min_apply_delay is lower 0, and not
>> only equal to 0?
>>
>
> Seems reasonable.
Trivial patch for master and REL9_4_STABLE attached as long as I don't
forget it..
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Updating copyright notices to 2015 for PGDG
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pg_basebackup -x/X doesn't play well with archive_mode & wal_keep_segments