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 10:48:03 -0600
Message-ID: <CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@elevated-dev.com> (raw)
In-Reply-To: <A0BDBCD1-78E5-46ED-8835-B63BC08186D8@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Mar 26, 2015, at 10:40 AM, Graeme B. Bell <grb@skogoglandskap.no> wrote:
> 
> I could be missing something obvious, but how does this stop e.g. checkpoints, autovacuum etc from occuring and generating new wal that the standby might like? It seems like stopping services accessing the DB is likely to cause a lengthy autovacuum to begin, for example. 

OK, fair point. But do you care? 

I care that all committed transactions are on the replica. I don't care if they're still in WAL or written to the backing files. Actually, think about that question, you don't either--WAL gets copied to the replica, then moved to the backing files. Checkpoints don't affect replication as far as I know. And autovacuum? Couldn't care less if its effects are replicated yet; when the replica becomes master, autovacuum will run on it.

-- 
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: <CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@elevated-dev.com>
Permalink:  ../CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@elevated-dev.com/
Also on:    postgresql.org/message-id/CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, grb@skogoglandskap.no
  Subject: Re: postgres hot-standby questions.
  In-Reply-To: <CD1B6BE2-8D28-4AE3-805F-7D42F4EA3ACA@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