Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cCWRS-0005lc-64 for pgsql-docs@arkaria.postgresql.org; Thu, 01 Dec 2016 18:50:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cCWRR-0007EX-Il for pgsql-docs@arkaria.postgresql.org; Thu, 01 Dec 2016 18:50:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cCWR3-0006ou-Rd for pgsql-docs@postgresql.org; Thu, 01 Dec 2016 18:50:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cCWR0-0000gR-8a for pgsql-docs@postgresql.org; Thu, 01 Dec 2016 18:50:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id uB1IoDY4029386; Thu, 1 Dec 2016 13:50:13 -0500 From: Tom Lane To: "Joshua D. Drake" cc: robert@interactive.co.uk, pgsql-docs@postgresql.org Subject: Re: Needs discussion of pg_xlog In-reply-to: <5414c450-db82-8169-d5cf-f33339d0944c@commandprompt.com> References: <20161201150006.4377.8523@wrigleys.postgresql.org> <5414c450-db82-8169-d5cf-f33339d0944c@commandprompt.com> Comments: In-reply-to "Joshua D. Drake" message dated "Thu, 01 Dec 2016 08:56:20 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29384.1480618213.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 01 Dec 2016 13:50:13 -0500 Message-ID: <29385.1480618213@sss.pgh.pa.us> X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org "Joshua D. Drake" writes: > On 12/01/2016 07:00 AM, robert@interactive.co.uk wrote: >> The only mention of this that I've seen is in Section 29.5 (WAL Inte= rnals), >> and that just says "it is advantageous...", with no explanatio= n. > The reason it can be advantageous is that pg_xlog has a different write=20 > 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 --=20 Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs