Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YbCpf-0002Ab-Ee for pgsql-admin@arkaria.postgresql.org; Thu, 26 Mar 2015 18:48:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YbCpe-0006aW-UD for pgsql-admin@arkaria.postgresql.org; Thu, 26 Mar 2015 18:48:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YbCpe-0006aP-64 for pgsql-admin@postgresql.org; Thu, 26 Mar 2015 18:48:42 +0000 Received: from mailout.easymail.ca ([64.68.201.169]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YbCpZ-0007KX-TY for pgsql-admin@postgresql.org; Thu, 26 Mar 2015 18:48:41 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 6E227E547; Thu, 26 Mar 2015 14:48:34 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at mailout.easymail.ca X-Spam-Flag: NO X-Spam-Score: -3.933 X-Spam-Level: X-Spam-Status: No, score=-3.933 required=5 tests=[ALL_TRUSTED=-1.8, AWL=-0.226, BAYES_00=-2.599, DNS_FROM_AHBL_RHSBL=0.692] Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (easymail-mailout.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 644Ljf2MoB13; Thu, 26 Mar 2015 14:48:34 -0400 (EDT) Received: from [192.168.2.16] (unknown [8.39.228.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 12B2EE347; Thu, 26 Mar 2015 14:48:34 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Subject: Re: postgres hot-standby questions. From: Scott Ribe In-Reply-To: <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com> Date: Thu, 26 Mar 2015 12:48:33 -0600 Cc: Postgres Maillist Content-Transfer-Encoding: quoted-printable Message-Id: <8CFAFF7B-BD43-4481-89ED-DE1A3054B837@elevated-dev.com> References: <848F3721-4A21-4260-9640-8F698E3EE376@skogoglandskap.no> <3C08D5DD-0702-4136-BBE3-21CBE064ADDE@elevated-dev.com> <604F46E7-7F6C-485B-BB72-21378D341F94@elevated-dev.com> <7EE11DF8-A813-4B65-BFD2-B258C5A9D666@elevated-dev.com> <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com> To: "Graeme B. Bell" X-Mailer: Apple Mail (2.2070.6) X-Pg-Spam-Score: -2.6 (--) 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 > On Mar 26, 2015, at 12:42 PM, Scott Ribe wr= ote: >=20 > On Mar 26, 2015, at 12:17 PM, Graeme B. Bell wrot= e: >>=20 >> ...I won't be able to directly apply the (promoted) standby's new WAL en= tries over the top of it. >=20 > I see--there's our difference. When I do this, I am willing to stay on th= e standby for a while if need be. >=20 >> A checkpoint or autovacuum might generate a small change/entry in WAL (I= don't know this for sure regarding autovacuum; this is a worst case assump= tion). >=20 > I would think autovacuum would have to, since it writes some changes to a= t least index pages. But you can disable autovacuum. And you can manually checkpoint. So maybe y= ou'd just add that after shutting down services that access the db. (For me= , that's mostly: "sudo launchctl unload my.particular.prefix.*") --=20 Scott Ribe scott_ribe@elevated-dev.com http://www.elevated-dev.com/ https://www.linkedin.com/in/scottribe/ (303) 722-0567 voice --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin