pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Moran <wmoran@collaborativefusion.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 09:54:37 -0400
Message-ID: <20080321095437.2a4a9ce6.wmoran@collaborativefusion.com> (raw)
In-Reply-To: <669dc9710803210645m530b492cs6de98f215bcecb23@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>
	<87prtoqkdk.fsf@oxford.xeocode.com>
	<669dc9710803210645m530b492cs6de98f215bcecb23@mail.gmail.com>

In response to "Laurent Raufaste" <analogue@glop.org>:

> 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.

The real question (to verify Tom's point) is does a _second_ SELECT count()
modify the table again?  If so, then something else is going on than
what Tom suggested.

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023



view thread (13+ messages)

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