pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Keaton Adams <kadams@mxlogic.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: WAL file utilization question
Date: Wed, 16 May 2007 12:35:20 -0400
Message-ID: <20070516163520.GZ4582@alvh.no-ip.org> (raw)
In-Reply-To: <1179332909.22514.3.camel@MXLRMT-208.corp.mxlogic.com>
References: <1179332909.22514.3.camel@MXLRMT-208.corp.mxlogic.com>

Keaton Adams wrote:

> Even with full_page_writes set to false and checkpoints taking place
> every 60 seconds or so, the amount of WAL log data generated per minute
> seems to be significant.

Stop right there.  Having checkpoints every 60 seconds is insane.  Did
you look into increasing checkpoint_segments a lot?

> So my question is this: If I kick off a transaction that loads records
> with a size of 100 bytes, does the insert for that record take 100 bytes
> in the WAL file, or is the data archived in the WAL log in page size
> (8k) portions?

Vicinity of 100 bytes, except right after checkpoints as you noted.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.



view thread (8+ messages)  latest in thread

Message-ID: <20070516163520.GZ4582@alvh.no-ip.org>
Permalink:  ../20070516163520.GZ4582@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20070516163520.GZ4582@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, kadams@mxlogic.com
  Subject: Re: WAL file utilization question
  In-Reply-To: <20070516163520.GZ4582@alvh.no-ip.org>

* 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