pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-David Beyer <jeandavid8@verizon.net>
To: pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: Curious about dead rows.
Date: Wed, 14 Nov 2007 09:58:33 -0500
Message-ID: <473B0D19.4000509@verizon.net> (raw)
In-Reply-To: <20071114125808.GO19014@alvh.no-ip.org>
References: <4735DBDB.5050208@verizon.net>
	<16627.1194714491@sss.pgh.pa.us>
	<4735FA9F.1080805@verizon.net>
	<b42b73150711131628q1469df3el6f557e10de07a05@mail.gmail.com>
	<473A5CC0.3060003@verizon.net>
	<b42b73150711131936l65b97b9ya7953383673b2710@mail.gmail.com>
	<473AE63D.7090305@verizon.net>
	<20071114125808.GO19014@alvh.no-ip.org>

Alvaro Herrera wrote:
> Jean-David Beyer wrote:
> 
>> How do I reset the counters in pg_stat_database and pg_stat_all_tables?
>> I tried just restarting postgres, but it seems to be saved in the database,
>> not just in the RAM of the server.
> 
> There is a function called pg_stat_reset() or some such.

I'll find it.
> 
>> I suppose that blks_read and blks_hit are zero because there are 8 GBytes
>> RAM on this machine and I give 2GBytes to shared_buffers = 253000 so that
>> all sits in RAM.
> 
> Perhaps you have stats_block_level set to off?

True, I will turn them on.
> 
>> I know there have been rollbacks but I do a REINDEX, CLUSTER, and VACUUM
>> ANALYZE before starting the inserts in question.
> 
> You do all three on the same tables?  That seems pretty pointless.  A
> sole CLUSTER has the same effect.

I was only doing this to be sure to clean everything up for this data
gathering process and wanted to know I did not miss anything.
> 
>> Do I need to do a VACUUM FULL ANALYZE instead?
> 
> No.
> 


-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key: 9A2FC99A         Registered Machine   241939.
 /( )\ Shrewsbury, New Jersey    http://counter.li.org
 ^^-^^ 09:50:01 up 22 days, 3:08, 4 users, load average: 4.29, 4.17, 4.11



view thread (41+ messages)  latest in thread

Message-ID: <473B0D19.4000509@verizon.net>
Permalink:  ../473B0D19.4000509@verizon.net/
Also on:    postgresql.org/message-id/473B0D19.4000509@verizon.net

 · 

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: jeandavid8@verizon.net
  Subject: Re: Curious about dead rows.
  In-Reply-To: <473B0D19.4000509@verizon.net>

* 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