Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPrR6-0004vw-Ke for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Apr 2013 09:35:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UPrR5-0000Aw-OB for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Apr 2013 09:35:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPrR4-0000Am-Qt; Wed, 10 Apr 2013 09:35:22 +0000 Received: from szxga02-in.huawei.com ([119.145.14.65]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UPrQv-0003sh-73; Wed, 10 Apr 2013 09:35:22 +0000 Received: from 172.24.2.119 (EHLO szxeml209-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AZV44761; Wed, 10 Apr 2013 17:35:08 +0800 (CST) Received: from SZXEML458-HUB.china.huawei.com (10.82.67.201) by szxeml209-edg.china.huawei.com (172.24.2.184) with Microsoft SMTP Server (TLS) id 14.1.323.7; Wed, 10 Apr 2013 17:34:01 +0800 Received: from blrprnc09ns (10.18.96.98) by SZXEML458-HUB.china.huawei.com (10.82.67.201) with Microsoft SMTP Server id 14.1.323.7; Wed, 10 Apr 2013 17:34:00 +0800 From: Amit Kapila To: "'Dang Minh Huong'" CC: , References: <6461930E-86E2-431B-B5C0-84217678BA80@gmail.com> <5164f3a8.e604420a.355e.ffff9478SMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: Subject: Re: replication_timeout not effective Date: Wed, 10 Apr 2013 15:03:59 +0530 Message-ID: <004701ce35ce$88677620$99366260$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac41xBJ3qgErXuLaQFOycEsNJey3PgACg1Aw Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org > Sent: Wednesday, April 10, 2013 1:49 PM Dang Minh Huong wrote: > To: Amit Kapila > Subject: Re: [BUGS] replication_timeout not effective On Wednesday, April 10, 2013 1:49 PM > Hi, > > Thank you for your soon reply. > > I'm trying to set the network timeout related parameters to terminate > it. > > # i've tried to set postgresql.conf's tcp_keepalives_* but not success. I have also tried those, but they didn't work that's why I have proposed this feature in 9.3 Please send mail on community list, others can also help you if they have any idea for avoiding such problems. > 2013/04/10 14:05、Amit Kapila のメッセージ: > > > On Wednesday, April 10, 2013 9:35 AM Dang Minh Huong wrote: > >> Hi, > > > >> I'm wondering if this is a bug of PostgreSQL. > > > >> PostgreSQL's show that replication_timeout parameter can "Terminate > replication connections that are inactive longer than the specified > number of milliseconds". But in my environment the sender process > is > hang up (in several tens of minunites) if i turn off (by power off) > Standby PC while pg_basebackup is excuting. > > > >> Is this correct? > > > >> As my debug, sender process is terminated when recieve SIGPIPE > process but it come too slow (about 30minutes after standby PC was > down). > > > > For such scenario's, new parameter wal_sender_timeout has been > introduced in 9.3. Refer below: > > http://www.postgresql.org/docs/devel/static/runtime-config- > replication.html#RUNTIME-CONFIG-REPLICATION-SENDER > > > > I am not sure how to get rid of this problem in 9.1.9 > > > > With Regards, > > Amit Kapila. > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs