Skip site navigation (1) Skip section navigation (2)

Re: PG writes a lot to the disk

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Laurent Raufaste" <analogue(at)glop(dot)org>
Cc: <pgsql-performance(at)postgresql(dot)org>
Subject: Re: PG writes a lot to the disk
Date: 2008-03-21 13:25:43
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
"Laurent Raufaste" <analogue(at)glop(dot)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
  Ask me about EnterpriseDB's RemoteDBA services!

In response to


pgsql-performance by date

Next:From: Laurent RaufasteDate: 2008-03-21 13:45:28
Subject: Re: PG writes a lot to the disk
Previous:From: Gregory StarkDate: 2008-03-21 13:22:26
Subject: Re: PostgreSQL NetApp and NFS

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group