From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: zoulx1982 <zoulx1982@163.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: 回复:Re: [BUGS] BUG #5853: when the walsender cannot exit when reboot slave computer
Date: Thu, 27 Jan 2011 18:25:03 +0200
Message-ID: <4D419C5F.8050603@enterprisedb.com> (raw)
In-Reply-To: <a00a08.8650.12dc7e97c97.Coremail.zoulx1982@163.com>
References: <4D417C6A.1040601@enterprisedb.com>
<201101271318.p0RDI88H045941@wwwmaster.postgresql.org>
<a00a08.8650.12dc7e97c97.Coremail.zoulx1982@163.com>
(Please keep the mailing list cc'd so that others can help)
On 27.01.2011 16:38, zoulx1982 wrote:
> There is no error or log, but when i use "ps -ef | grep postgres" to watch the process, i find walsender process already exists.
> In my view, whether this process should exit, because the walreceiver have exit (caused by computer restart).
If the client just goes away, like if the computer is reset, it can take
up to a few minutes for the operating system to declare the TCP
connection as dead. And you'll need to generate a little bit of WAL so
that the walsender has something it tries to send to the receiver,
otherwise it might take even longer. You can also look at "netstat"
output, to see if the OS thinks the connection is still established.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: heikki.linnakangas@enterprisedb.com, zoulx1982@163.com
Subject: Re: 回复:Re: [BUGS] BUG #5853: when the walsender cannot exit when reboot slave computer
In-Reply-To: <4D419C5F.8050603@enterprisedb.com>
References: <4D417C6A.1040601@enterprisedb.com> <201101271318.p0RDI88H045941@wwwmaster.postgresql.org> <a00a08.8650.12dc7e97c97.Coremail.zoulx1982@163.com> <4D419C5F.8050603@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox