pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Table truncate question
2+ messages / 2 participants
[nested] [flat]

* Table truncate question
@ 2006-06-14 16:34  Benjamin Krajmalnik <kraj@illumen.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Benjamin Krajmalnik @ 2006-06-14 16:34 UTC (permalink / raw)
  To: pgsql-admin

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.

 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Table truncate question
@ 2006-06-14 21:02  Brad Nicholson <bnichols@ca.afilias.info>
  parent: Benjamin Krajmalnik <kraj@illumen.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Brad Nicholson @ 2006-06-14 21:02 UTC (permalink / raw)
  To: Benjamin Krajmalnik <kraj@illumen.com>; +Cc: pgsql-admin

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.




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2006-06-14 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-14 16:34 Table truncate question Benjamin Krajmalnik <kraj@illumen.com>
2006-06-14 21:02 ` Brad Nicholson <bnichols@ca.afilias.info>

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