pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brad Nicholson <bnichols@ca.afilias.info>
To: Benjamin Krajmalnik <kraj@illumen.com>
Cc: postgres <pgsql-admin@postgresql.org>
Subject: Re: Table truncate question
Date: Wed, 14 Jun 2006 17:02:25 -0400
Message-ID: <44907961.9030809@ca.afilias.info> (raw)
In-Reply-To: <BF337097BDD9D849A2F4B818DDB27987029336@stash.stackdump.local>
References: <BF337097BDD9D849A2F4B818DDB27987029336@stash.stackdump.local>

Benjamin Krajmalnik wrote:
> I recently truncated a partitioned table.
> 
> When I look at the statistics for the table, it shows tuples inserted as
> zero (which I would expect), but it did not clear the value for tuples
> updated and tuples deleted.
> 
> Is this the expected behavior?  I would assume that the updated/deleted
> stats should also get cleared.
> 
>  
> 
> I am running PG 8.1.4 on Windows.

Stats get updated by the ANALYZE command.  Run it on the table and check
again.


-- 
Brad Nicholson  416-673-4106
Database Administrator, Afilias Canada Corp.




view thread (2+ messages)

Message-ID: <44907961.9030809@ca.afilias.info>
Permalink:  ../44907961.9030809@ca.afilias.info/
Also on:    postgresql.org/message-id/44907961.9030809@ca.afilias.info

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bnichols@ca.afilias.info, kraj@illumen.com
  Subject: Re: Table truncate question
  In-Reply-To: <44907961.9030809@ca.afilias.info>
  References: <BF337097BDD9D849A2F4B818DDB27987029336@stash.stackdump.local> <44907961.9030809@ca.afilias.info>

* 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