Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VnvCp-00017z-JH for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2013 19:00:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VnvCp-0003Xw-2F for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Dec 2013 19:00:23 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VnvCn-0003WR-Kf for pgsql-hackers@postgresql.org; Tue, 03 Dec 2013 19:00:21 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VnvCk-00087F-MQ for pgsql-hackers@postgresql.org; Tue, 03 Dec 2013 19:00:21 +0000 Received: from anarazel.de (p5DDC63F2.dip0.t-ipconnect.de [93.220.99.242]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LnDv3-1V7S3Q2XLJ-00hFEj; Tue, 03 Dec 2013 20:00:17 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 05EA3100CB5; Tue, 3 Dec 2013 20:00:17 +0100 (CET) Date: Tue, 3 Dec 2013 20:00:16 +0100 From: Andres Freund To: Robert Haas Cc: =?iso-8859-1?Q?Fabr=EDzio?= Mello , Christian Kruse , Pgsql Hackers Subject: Re: Time-Delayed Standbys Message-ID: <20131203190016.GG19016@awork2.anarazel.de> References: <52984711.8040806@lab.ntt.co.jp> <20131203163302.GA18669@achilles.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:d7KeDg9lXua7POoikIOftjUwAb3MP1IaDLQMTyusG5M YR2FWUDTO46AvXs2XgwLzH8e2zBsMoAU0n/i1esgvylTIlBJzs hqOPgHG+ZcTWgcDgRTrZaTxxx1RcZm0q29qXVhGDMBXw4F82d9 EXZK4ABCd4siHDCEeV5g50EcrEmxA83QAPpPqamim6AjEwu1AZ ItQtgAr8V+9G3zGScAO0vzt4gnBqIw3kcVdZQgxUvmPkq3Q5RK cJ14dCcrR3HSjCp/qF/nhaS8oar08gvuki+hV/kCc+oUuM+W4v WML4fjmLwtja27h3gH+FLcgm7QzTrQj8cnj4rq+/rocek/OxCD 3fmxhMHcmCqnT27ZkHNPnOLtK4zFYsNRRJbM/2wnn 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 On 2013-12-03 13:46:28 -0500, Robert Haas wrote: > On Tue, Dec 3, 2013 at 12:36 PM, Fabr=EDzio 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... >=20 > 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. Greetings, Andres Freund --=20 Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers