Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo25i-00016d-IF for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2013 02:21:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vo25i-0007KU-1V for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Dec 2013 02:21:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo25g-0007KL-QJ for pgsql-hackers@postgresql.org; Wed, 04 Dec 2013 02:21:28 +0000 Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vo25c-0002pe-Un for pgsql-hackers@postgresql.org; Wed, 04 Dec 2013 02:21:28 +0000 Received: from mfs6.rdh.ecl.ntt.co.jp (mfs6.rdh.ecl.ntt.co.jp [129.60.39.149]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id rB42LGjR006542; Wed, 4 Dec 2013 11:21:16 +0900 Received: from mfs6.rdh.ecl.ntt.co.jp (localhost.localdomain [127.0.0.1]) by mfs6.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 31FA9E0128; Wed, 4 Dec 2013 11:21:16 +0900 (JST) Received: from imail3.m.ecl.ntt.co.jp (imail3.m.ecl.ntt.co.jp [129.60.5.248]) by mfs6.rdh.ecl.ntt.co.jp (Postfix) with ESMTP id 267F1E0127; Wed, 4 Dec 2013 11:21:16 +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 rB42LFVO030288; Wed, 4 Dec 2013 11:21:16 +0900 Message-ID: <529E92DC.4010708@lab.ntt.co.jp> Date: Wed, 04 Dec 2013 11:26:36 +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: Andres Freund , Robert Haas CC: =?ISO-8859-1?Q?Fabr=EDzio_Mello?= , Christian Kruse , Pgsql Hackers Subject: Re: Time-Delayed Standbys References: <52984711.8040806@lab.ntt.co.jp> <20131203163302.GA18669@achilles.fritz.box> <20131203190016.GG19016@awork2.anarazel.de> In-Reply-To: <20131203190016.GG19016@awork2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; 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/04 4:00), Andres Freund wrote: > On 2013-12-03 13:46:28 -0500, Robert Haas wrote: >> On Tue, Dec 3, 2013 at 12:36 PM, Fabrízio de Royes Mello >> wrote: >>> On Tue, Dec 3, 2013 at 2:33 PM, Christian Kruse >>> wrote: >>>> >>>> Hi Fabrizio, >>>> >>>> looks good to me. I did some testing on 9.2.4, 9.2.5 and HEAD. It >>>> applies and compiles w/o errors or warnings. I set up a master and two >>>> hot standbys replicating from the master, one with 5 minutes delay and >>>> one without delay. After that I created a new database and generated >>>> some test data: >>>> >>>> CREATE TABLE test (val INTEGER); >>>> INSERT INTO test (val) (SELECT * FROM generate_series(0, 1000000)); >>>> >>>> The non-delayed standby nearly instantly had the data replicated, the >>>> delayed standby was replicated after exactly 5 minutes. I did not >>>> notice any problems, errors or warnings. >>>> >>> >>> Thanks for your review Christian... >> >> So, I proposed this patch previously and I still think it's a good >> idea, but it got voted down on the grounds that it didn't deal with >> clock drift. I view that as insufficient reason to reject the >> feature, but others disagreed. > > I really fail to see why clock drift should be this patch's > responsibility. It's not like the world would go under^W data corruption > would ensue if the clocks drift. Your standby would get delayed > imprecisely. Big deal. From what I know of potential users of this > feature, they would set it to at the very least 30min - that's WAY above > the range for acceptable clock-drift on servers. Yes. I think that purpose of this patch is long time delay in standby server, and not for little bit careful timing delay. 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