pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Graeme B. Bell <grb@skogoglandskap.no>
Cc: Postgres Maillist <pgsql-admin@postgresql.org>
Subject: Re: postgres hot-standby questions.
Date: Thu, 26 Mar 2015 12:42:28 -0600
Message-ID: <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com> (raw)
In-Reply-To: <C3258C19-AAF1-42A6-93DD-C9057C5C05C0@skogoglandskap.no>
References: <848F3721-4A21-4260-9640-8F698E3EE376@skogoglandskap.no>
	<3C08D5DD-0702-4136-BBE3-21CBE064ADDE@elevated-dev.com>
	<A8D5B7E4-31EF-4C5B-B0CC-F6514B50C79B@skogoglandskap.no>
	<604F46E7-7F6C-485B-BB72-21378D341F94@elevated-dev.com>
	<BE76354B-718A-48BC-8C20-5292D225DF61@skogoglandskap.no>
	<7EE11DF8-A813-4B65-BFD2-B258C5A9D666@elevated-dev.com>
	<A0BDBCD1-78E5-46ED-8835-B63BC08186D8@skogoglandskap.no>
	<CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@elevated-dev.com>
	<C3258C19-AAF1-42A6-93DD-C9057C5C05C0@skogoglandskap.no>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Mar 26, 2015, at 12:17 PM, Graeme B. Bell <grb@skogoglandskap.no> wrote:
> 
> ...I won't be able to directly apply the (promoted) standby's new WAL entries over the top of it.

I see--there's our difference. When I do this, I am willing to stay on the standby for a while if need be.

> 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 assumption).

I would think autovacuum would have to, since it writes some changes to at least index pages.

> Let's imagine someone follows your advice but is already running a PITR archive with archive_timeout. The recommended timeout is 1 minute. Every minute their server generates a new WAL segment. 

Yeah, I'm always assuming streaming replication. If you know you have a delay in replication, you'd better remember that ;-)

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice







-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (19+ messages)  latest in thread

Message-ID: <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com>
Permalink:  ../5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com/
Also on:    postgresql.org/message-id/5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, grb@skogoglandskap.no
  Subject: Re: postgres hot-standby questions.
  In-Reply-To: <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com>
  References: <848F3721-4A21-4260-9640-8F698E3EE376@skogoglandskap.no> <3C08D5DD-0702-4136-BBE3-21CBE064ADDE@elevated-dev.com> <A8D5B7E4-31EF-4C5B-B0CC-F6514B50C79B@skogoglandskap.no> <604F46E7-7F6C-485B-BB72-21378D341F94@elevated-dev.com> <BE76354B-718A-48BC-8C20-5292D225DF61@skogoglandskap.no> <7EE11DF8-A813-4B65-BFD2-B258C5A9D666@elevated-dev.com> <A0BDBCD1-78E5-46ED-8835-B63BC08186D8@skogoglandskap.no> <CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@elevated-dev.com> <C3258C19-AAF1-42A6-93DD-C9057C5C05C0@skogoglandskap.no> <5EEEF0C6-E675-4E17-992C-525725E5C60F@elevated-dev.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox