pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gregory Stark <stark@enterprisedb.com>
To: Laurent Raufaste <analogue@glop.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: PG writes a lot to the disk
Date: Fri, 21 Mar 2008 13:25:43 +0000
Message-ID: <87prtoqkdk.fsf@oxford.xeocode.com> (raw)
In-Reply-To: <669dc9710803210349x764b2ec7k5aa95e33afefa926@mail.gmail.com>
References: <669dc9710803190418g45002e87k19cb742579c1eeac@mail.gmail.com>
	<669dc9710803200348x64122249jd2ac5924d78a6da0@mail.gmail.com>
	<D960CB61B694CF459DCFB4B0128514C201E66F9E@exadv11.host.magwien.gv.at>
	<20080320105833.c539476d.wmoran@collaborativefusion.com>
	<10279.1206026439@sss.pgh.pa.us>
	<669dc9710803210349x764b2ec7k5aa95e33afefa926@mail.gmail.com>

"Laurent Raufaste" <analogue@glop.org> writes:

> All this make me think that PG was setting some bit on every row it
> used, which caused this massive write activity (3MB/s) in the table
> files. I'm talking about approx. 50 SELECT per second for a single
> server.

Well that's true it does. But only once per row. So analyze would have set the
bit on every row. You could do the same thing with something ligter like
"select count(*) from <table>".

Tom's thinking was that you would only expect a high update rate for a short
time until all those bits were set.

Slony's inserts, updates, and deletes count as updates to the table as well.

-- 
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's RemoteDBA services!



view thread (13+ messages)  latest in thread

Message-ID: <87prtoqkdk.fsf@oxford.xeocode.com>
Permalink:  ../87prtoqkdk.fsf@oxford.xeocode.com/
Also on:    postgresql.org/message-id/87prtoqkdk.fsf@oxford.xeocode.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-performance@postgresql.org
  Cc: stark@enterprisedb.com, analogue@glop.org
  Subject: Re: PG writes a lot to the disk
  In-Reply-To: <87prtoqkdk.fsf@oxford.xeocode.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