Re: Bug in StartupSUBTRANS

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Bug in StartupSUBTRANS
Дата
Msg-id CAB7nPqSfomh1-O1URRph-ObyGAMv=6i5-B4veKBmK-j1-D_XdA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Bug in StartupSUBTRANS  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Feb 10, 2016 at 3:45 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Simon Riggs <simon@2ndQuadrant.com> writes:
>> Your patch looks right to me, so I will commit, barring objections... with
>> backpatch. Likely to 9.0, AFAICS.
>
> 9.0 is out of support and should not be patched anymore.
>
> I agree that the patch is basically correct, though I'd personally
> write it without bothering with the extra variable:
>
> +       /* must account for wraparound */
> +       if (startPage > TransactionIdToPage(0xFFFFFFFF))
> +               startPage = 0;
>
> Also, the comment at line 45 is now wrong and needs an addition.

Instead of using a hardcoded value, wouldn't it be better to use
something based on MaxTransactionId?
-- 
Michael



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

Предыдущее
От: Dilip Kumar
Дата:
Сообщение: Re: Relation extension scalability
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: process type escape for log_line_prefix