pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurent Raufaste <analogue@glop.org>
To: pgsql-performance@postgresql.org
Subject: Re: PG writes a lot to the disk
Date: Fri, 21 Mar 2008 14:45:28 +0100
Message-ID: <669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.com> (raw)
In-Reply-To: <87prtoqkdk.fsf@oxford.xeocode.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>
	<87prtoqkdk.fsf@oxford.xeocode.com>

2008/3/21, Gregory Stark <stark@enterprisedb.com>:
>
> 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>".

Well, the table has been analyzed, I did SELECT, PG write on the
table. That's a fact.

But it's also true (I juste tested it) that every file of a table is
modified by a SELECT COUNT.
>
>  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.
>

Slony is shut down when I'm testing.

-- 
Laurent Raufaste
<http://www.glop.org/;



view thread (13+ messages)  latest in thread

Message-ID: <669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.com>
Permalink:  ../669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.com/
Also on:    postgresql.org/message-id/669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.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: analogue@glop.org
  Subject: Re: PG writes a lot to the disk
  In-Reply-To: <669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.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