Sync Rep and shutdown Re: Sync Rep v19

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Sync Rep and shutdown Re: Sync Rep v19
Дата
Msg-id AANLkTimkFfXcA8=W4+Jt4sAgXPB1DApiUgbibw1HRZcj@mail.gmail.com
обсуждение исходный текст
Ответы Re: Sync Rep and shutdown Re: Sync Rep v19  (Yeb Havinga <yebhavinga@gmail.com>)
Re: Sync Rep and shutdown Re: Sync Rep v19  (Magnus Hagander <magnus@hagander.net>)
Re: Sync Rep and shutdown Re: Sync Rep v19  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Wed, Mar 9, 2011 at 2:14 PM, Jaime Casanova <jaime@2ndquadrant.com> wrote:
> On Tue, Mar 8, 2011 at 11:58 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>>
>> The fast shutdown handling seems fine, but why not just handle smart
>> shutdown the same way?
>
> currently, smart shutdown means no new connections, wait until
> existing ones close normally. for consistency, it should behave the
> same for sync rep.

Agreed. I think that user who wants to request smart shutdown expects all
the existing connections to basically be closed normally by the client. So it
doesn't seem to be good idea to forcibly close the connection and prevent
the COMMIT from being returned in smart shutdown case. But I'm all ears
for better suggestions.

Anyway, we got the consensus about how fast shutdown should work with
sync rep. So I created the patch. Please feel free to comment and commit
the patch first ;)

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: Re: Sync Rep v19
Следующее
От: Yeb Havinga
Дата:
Сообщение: Re: Sync Rep and shutdown Re: Sync Rep v19