Estimating WAL volume

From: Greg Smith <gsmith(at)gregsmith(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Estimating WAL volume
Date: 2007-07-12 03:10:36
Message-ID: Pine.GSO.4.64.0707112254480.17954@westnet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

All this talk of WAL writing lately has me wondering something I haven't
spent enough time looking at the source to figure out myself this
week...any good rules of thumb out there for estimating WAL volume? I'm
used to just measuring it via benchmarking but it strikes me a formula
would be nice to have for pre-planning.

For example, if I have a table where a typical row is X bytes wide, and
I'm updating Y of those per second, what's the expected write rate of WAL
volume? Some % of those writes are going to be full pages; what's
typical? How much does the number and complexity of indexes factor into
things--just add the width of the index in bytes to the size of the
record, or is it worse than that?

--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message A. Kretschmer 2007-07-12 05:06:31 Re: bitmap-index-scan slower than normal index scan
Previous Message Francisco Reyes 2007-07-12 00:26:56 Re: WALL on controller without battery?