pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joshua D. Drake <jd@commandprompt.com>
Cc: robert@interactive.co.uk
Cc: pgsql-docs@postgresql.org
Subject: Re: Needs discussion of pg_xlog
Date: Thu, 01 Dec 2016 13:50:13 -0500
Message-ID: <29385.1480618213@sss.pgh.pa.us> (raw)
In-Reply-To: <5414c450-db82-8169-d5cf-f33339d0944c@commandprompt.com>
References: <20161201150006.4377.8523@wrigleys.postgresql.org>
	<5414c450-db82-8169-d5cf-f33339d0944c@commandprompt.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>

"Joshua D. Drake" <jd@commandprompt.com> writes:
> On 12/01/2016 07:00 AM, robert@interactive.co.uk wrote:
>> The only mention of this that I&#39;ve seen is in Section 29.5 (WAL Internals),
>> and that just says &quot;it is advantageous...&quot;, with no explanation.

> The reason it can be advantageous is that pg_xlog has a different write 
> profile that $PGDATA. The WAL is written sequentially versus randomly.

Yeah.  The traditional understanding of that was you wanted to keep a
write head positioned over the current end-of-WAL, which of course only
applies to spinning rust.

It's still true that under heavy update loads, your I/O volume to WAL is
probably comparable to your I/O volume to everything else, which might
justify a separate SSD just on write bandwidth grounds.  But seek delays
aren't part of the calculation anymore.

			regards, tom lane


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



view thread (3+ messages)

Message-ID: <29385.1480618213@sss.pgh.pa.us>
Permalink:  ../29385.1480618213@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29385.1480618213@sss.pgh.pa.us

 · 

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-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jd@commandprompt.com, robert@interactive.co.uk
  Subject: Re: Needs discussion of pg_xlog
  In-Reply-To: <29385.1480618213@sss.pgh.pa.us>

* 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