Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOS6P-0004Ys-KX for pgsql-hackers@postgresql.org; Wed, 17 Oct 2012 11:47:57 +0000 Received: from szxga02-in.huawei.com ([119.145.14.65]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TOS6K-0005mF-Bv for pgsql-hackers@postgresql.org; Wed, 17 Oct 2012 11:47:56 +0000 Received: from 172.24.2.119 (EHLO szxeml205-edg.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id AQS51640; Wed, 17 Oct 2012 19:47:37 +0800 (CST) Received: from SZXEML416-HUB.china.huawei.com (10.82.67.155) by szxeml205-edg.china.huawei.com (172.24.2.58) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 17 Oct 2012 19:46:07 +0800 Received: from blrprnc09ns (10.18.96.98) by szxeml416-hub.china.huawei.com (10.82.67.155) with Microsoft SMTP Server id 14.1.323.3; Wed, 17 Oct 2012 19:46:05 +0800 From: Amit Kapila To: "'Heikki Linnakangas'" CC: , "'Fujii Masao'" References: <50515fcd.c32f320a.4297.ffffb186SMTPIN_ADDED@mx.google.com> <6C0B27F7206C9E4CA54AE035729E9C382853264E@szxeml509-mbs> <6C0B27F7206C9E4CA54AE035729E9C382853288B@szxeml509-mbs> <5056cb6b.29f2440a.7bd9.1633SMTPIN_ADDED@mx.google.com> <6C0B27F7206C9E4CA54AE035729E9C38285337FF@szxeml509-mbs> <506972B9.6060104@vmware.com> <6C0B27F7206C9E4CA54AE035729E9C38285358F7@szxeml509-mbs> <506AA530.30106@vmware.com> <6C0B27F7206C9E4CA54AE035729E9C382853645A@szxeml509-mbs> <507597E2.8090701@vmware.com> <5076DD38.8020804@vmware.com> <507BE1AD.2060709@vmwar e.com> In-Reply-To: <507BE1AD.2060709@vmware.com> Subject: Re: [BUGS] BUG #7534: walreceiver takes long time to detect n/w breakdown Date: Wed, 17 Oct 2012 17:16:04 +0530 Message-ID: <006b01cdac5c$fda685d0$f8f39170$@kapila@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac2qvazn3Mt12f8/TYWrs/uBagPukgBndFXQ Content-Language: en-us X-Originating-IP: [10.18.96.98] X-CFilter-Loop: Reflected X-Pg-Spam-Score: -1.3 (-) X-Archive-Number: 201210/999 X-Sequence-Number: 215235 > On Monday, October 15, 2012 3:43 PM Heikki Linnakangas wrote: > On 13.10.2012 19:35, Fujii Masao wrote: > > On Thu, Oct 11, 2012 at 11:52 PM, Heikki Linnakangas > > wrote: > >> Ok, thanks. Committed. > > > > I found one typo. The attached patch fixes that typo. > > Thanks, fixed. > > > ISTM you need to update the protocol.sgml because you added > > the field 'replyRequested' to WalSndrMessage and StandbyReplyMessage. > > > Is it worth adding the same mechanism (send back the reply immediately > > if walsender request a reply) into pg_basebackup and pg_receivexlog? > > Good catch. Yes, they should be taught about this too. I'll look into > doing that too. If you have not started and you don't have objection, I can pickup this to complete it. For both (pg_basebackup and pg_receivexlog), we need to get a timeout parameter from user in command line, as there is no conf file here. New Option can be -t (parameter name can be recvtimeout). The main changes will be in function ReceiveXlogStream(), it is a common function for both Pg_basebackup and pg_receivexlog. Handling will be done in same way as we have done in walreceiver. Suggestions/Comments? With Regards, Amit Kapila.