Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZzV3c-0000Wd-Vo for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Nov 2015 19:39:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZzV3c-0005HG-IN for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Nov 2015 19:39:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZzV3a-0005Fj-Or for pgsql-hackers@postgresql.org; Thu, 19 Nov 2015 19:39:46 +0000 Received: from mout.gmx.net ([212.227.15.19]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZzV3Y-0008Vl-3g for pgsql-hackers@postgresql.org; Thu, 19 Nov 2015 19:39:46 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MaIsi-1ZfmJK2cNk-00JsiB for ; Thu, 19 Nov 2015 20:39:42 +0100 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailauth.nyi.internal (Postfix) with ESMTP id 554F8201F5 for ; Thu, 19 Nov 2015 14:39:41 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 19 Nov 2015 14:39:41 -0500 X-Sasl-enc: Ee8PaJS4Y5HeJBWVBgh9/si/7z4+I5rgnqDY/uoNlD+Q 1447961981 Received: from [10.0.0.7] (c-73-13-69-21.hsd1.pa.comcast.net [73.13.69.21]) by mail.messagingengine.com (Postfix) with ESMTPA id 20A6468011D; Thu, 19 Nov 2015 14:39:41 -0500 (EST) Subject: Re: Re: [COMMITTERS] pgsql: Add --synchronous option to pg_receivexlog, for more reliable WA To: Fujii Masao References: <55F8D305.9040506@gmx.net> Cc: pgsql-hackers From: Peter Eisentraut Message-ID: <564E257D.5000307@gmx.net> Date: Thu, 19 Nov 2015 14:39:41 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:xnbAde7DCiGYV89hyku/IZey2dT4VJ05rZZ60+B7UlaW2fSQHv2 RTSr5aJ7BvzquyM3AB4t94+t3wGLHu6efrbMOMgoZ++vV5j0uG9kzEdAYFleSSWlH0qYfcY /x3MVAaAHtZUvGlx5sq2r0B9iFjdomP7uE084z2ETTqdnb6oRk4Dh9a8sT94UfWT/1IHB9t vQKOx0+8pE8AN8BawgD/w== X-UI-Out-Filterresults: notjunk:1;V01:K0:LD2IGVjcNa4=:bhG3dXS2ft76J51u4x6arv FtBDC0pOiDX1sBX73DiXnMjV/oYxYSAb8nSL6GrGLQgJotz1gOgDM3MAu2z1A5J3S2k950HqL gyf52gruYe78dVC/TcF6Uz69savqqYMbBfL1OY56sZZwe4yUrynwrlRYzLVVyelmi89ZsQIzD roxOoRBrzrZBWbqkv48KaKCIwamV0Nwv71KptSkto6f+T8QaUzQOzuBKPSQs79XPzOUaTG7/J 8e8CQ65+K+7WE63fR8TMmhNkzGWQR8LCkfdra77UEJgS2JWOCwz3oMqL/whnyh+R6FInnCzvb RiCj1mhtLgEpqFxYLLM3wvUCPlEjOanreD1G1PPrMjTo74wmKCzv9bIY7AUwgqOzBzWELkZFT 8DvXjTsR7dYaq77zpADeMuwSj4RrrP+Pfvj6/GyErVRBtxwnKkYH7E5PH9bAYxHNvujxxMsRp dx82mp/qoPTYe8VG1o0ob8Lppoq5YXMN3XBfIdeuvdK6jxpSt/c0MIE177ZKy85MKBML8dJsL /jQuLTyqOshjZNpC6kdesP4ecBIFELgUt03E71Q26gSKvpcGA22ESEHG04mAQUBKuoIYJiKnL ZgiYTtULSYTfFvgWOK73NYATYyJ6SXrH47KEQPEqF452VKsew5jRC7C9BjnaLgJKIFRX4jJWj dp23XonSrSQMyJoQJvfadbzja9m+9aS+0r4O4TbNbmm1pz9/hVZKzZfMxjHO733he5E7METzp 16GAYvqoR7P/K/oAwUX1P2cN9dIVFvTPDmnr+Clw4BjrUs2PTATm3uVWn47fC0t+KzcgxQcuw OZSxYxe X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 9/15/15 11:04 PM, Fujii Masao wrote: > If --slot option is specified, pg_receivexlog reports a flush position to > the server even though --synchronous is not specified. So users might think > that --synchrnous option is not necessary for synchronous pg_receivexlog > setting. But that's not true. If --synchronous option is not specified, the > received WAL data is flushed to the disk only when WAL segment is switched. > So the transactions on the master need to wait for a long time, i.e., > we can think that synchronous pg_receivexlog doesn't work smoothly. > To avoid such situation, --synchronous option also needs to be specified and > which makes pg_receivexlog flush WAL data immediately after receiving it. Thank you for this information. I hope to have clarified this in the documentation now. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers