Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XvvDh-0005ri-Ag for pgsql-admin@arkaria.postgresql.org; Tue, 02 Dec 2014 21:42:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XvvDg-0000AD-HP for pgsql-admin@arkaria.postgresql.org; Tue, 02 Dec 2014 21:42:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XvvDe-0000A4-91 for pgsql-admin@postgresql.org; Tue, 02 Dec 2014 21:42:50 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XvvDa-0006dO-MQ for pgsql-admin@postgresql.org; Tue, 02 Dec 2014 21:42:48 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 9C028BF7FFA for ; Tue, 2 Dec 2014 13:42:46 -0800 (PST) Date: Tue, 2 Dec 2014 14:42:45 -0700 (MST) From: David G Johnston To: pgsql-admin@postgresql.org Message-ID: <1417556565281-5828990.post@n5.nabble.com> In-Reply-To: <547E1A3D.8040502@gmail.com> References: <547E1A3D.8040502@gmail.com> Subject: Re: 9.2 documentation/configuration question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Jay at Verizon wrote > checkpoint_timeout = 5min #default This impacts the primary machine only and ensures that regardless of the lack of activity a crash will only need to REDO that last five minutes of history since everything prior to that will already have been persisted to the data files. > archive_timeout=3600 This impacts how far, in time, the archive can be behind the master in a low-volume situation. This is because only complete (16MB) WAL files are shipped. In a low volume situation it may take several active checkpoint_timeout periods (not to mention zero activity periods) to generate enough data to fill up a single 16MB file. In a low volume situation a single WAL will have multiple checkpoint records. In a high volume situation there will be many WAL files that have no checkpoint records. This later situation being the reason for the "checkpoint_segments" parameter. So the archive will never be more than 16MB behind the master but the corresponding time period is unbounded in the absence of archive_timeout. The master will always be up-to-date but the amount of time needed for recovery is bounded either by time or size - which ever one comes first. David J. -- View this message in context: http://postgresql.nabble.com/9-2-documentation-configuration-question-tp5828964p5828990.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin