Hi,

It takes nonsensically extra several seconds to shut down the standby server.
This is because the startup process cannot respond immediately the SIGTERM
signal sent by postmaster for the shutdown while it's sleeping on WaitLatch.
This delays the shutdown for up to the sleep time on WaitLatch (currently
5 seconds).

The signal handlers of the startup process should call SetLatch to respond
the signals even while it's sleeping on WaitLatch, like those of walsender
already do. The attached patch does this.

Regards,

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

Search Discussions

  • Simon Riggs at Oct 14, 2010 at 6:23 pm
    Committed.
    On Thu, 2010-10-14 at 12:57 +0900, Fujii Masao wrote:
    Hi,

    It takes nonsensically extra several seconds to shut down the standby server.
    This is because the startup process cannot respond immediately the SIGTERM
    signal sent by postmaster for the shutdown while it's sleeping on WaitLatch.
    This delays the shutdown for up to the sleep time on WaitLatch (currently
    5 seconds).

    The signal handlers of the startup process should call SetLatch to respond
    the signals even while it's sleeping on WaitLatch, like those of walsender
    already do. The attached patch does this.

    Regards,
    --
    Simon Riggs www.2ndQuadrant.com
    PostgreSQL Development, 24x7 Support, Training and Services

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-hackers @
categoriespostgresql
postedOct 14, '10 at 9:58a
activeOct 14, '10 at 6:23p
posts2
users2
websitepostgresql.org...
irc#postgresql

2 users in discussion

Fujii Masao: 1 post Simon Riggs: 1 post

People

Translate

site design / logo © 2022 Grokbase