Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VpyQQ-0004RF-9M for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Dec 2013 10:50:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VpyQP-00076d-KP for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Dec 2013 10:50:53 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VpyQO-00076U-4I for pgsql-hackers@postgresql.org; Mon, 09 Dec 2013 10:50:52 +0000 Received: from tama50.ecl.ntt.co.jp ([129.60.39.147]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VpyPJ-0004n3-RP for pgsql-hackers@postgresql.org; Mon, 09 Dec 2013 10:49:48 +0000 Received: from mfs5.rdh.ecl.ntt.co.jp (mfs5.rdh.ecl.ntt.co.jp [129.60.39.144]) by tama50.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id rB9Ancjd016949; Mon, 9 Dec 2013 19:49:38 +0900 Received: from mfs5.rdh.ecl.ntt.co.jp (localhost.localdomain [127.0.0.1]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 782CBE012F; Mon, 9 Dec 2013 19:49:38 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by mfs5.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 6C98AE012E; Mon, 9 Dec 2013 19:49:38 +0900 (JST) Received: from [129.60.241.67] ([129.60.241.67]) by imail3.m.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id rB9Anc5D023595; Mon, 9 Dec 2013 19:49:38 +0900 Message-ID: <52A5A17D.5010504@lab.ntt.co.jp> Date: Mon, 09 Dec 2013 19:54:53 +0900 From: KONDO Mitsumasa User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Pavel Stehule CC: =?UTF-8?B?RmFicsOtemlvIE1lbGxv?= , Robert Haas , Simon Riggs , Pgsql Hackers Subject: Re: Time-Delayed Standbys References: <52A59D10.7020209@lab.ntt.co.jp> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-MML: No X-Pg-Spam-Score: -1.9 (-) 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 (2013/12/09 19:35), Pavel Stehule wrote: > > > > 2013/12/9 KONDO Mitsumasa > > > Hi Fabrízio, > > I test your v4 patch, and send your review comments. > > * Fix typo > > 49 -# commited transactions from the master, specify a recovery time delay. > > 49 +# committed transactions from the master, specify a recovery time delay. > > * Fix white space > > 177 - if (secs <= 0 && microsecs <=0) > > 177 + if (secs <= 0 && microsecs <=0 ) > > * Add functionality (I propose) > We can set negative number at min_standby_apply_delay. I think that this feature > is for world wide replication situation. For example, master server is in > Japan and slave server is in San Francisco. Japan time fowards than San > Francisco time > . And if we want to delay in this situation, it can need negative number in > min_standby_apply_delay. So I propose that time delay conditional branch > change under following. > > - if (min_standby_apply_delay > 0) > > + if (min_standby_apply_delay != 0) > What do you think? It might also be working collectry. > > > what using interval instead absolute time? This is because local time is recorded in XLOG. And it has big cost for calculating global time. Regards, -- Mitsumasa KONDO NTT Open Source Software Center -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers