pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Subbiah, Stalin <SSubbiah@netopia.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum Verbose output
Date: Mon, 31 Oct 2005 16:22:59 -0500
Message-ID: <19097.1130793779@sss.pgh.pa.us> (raw)
In-Reply-To: <6B26A56846293C4488B54CF3E440335403E2F77A@mxca2.corp.netopia.com>
References: <6B26A56846293C4488B54CF3E440335403E2F77A@mxca2.corp.netopia.com>

"Subbiah, Stalin" <SSubbiah@netopia.com> writes:
> INFO:  vacuuming "public.eventlog"
> INFO:  index "ix_eventlog_eventtime" now contains 11465395 row versions
> in 77113 pages
> DETAIL:  8737797 index row versions were removed.

> Does it mean ix_eventlog_ index had 11.4mil row versions out of which
> 8.7mil were removed cause of deletes?

No, it says "now contains", ie those are the post-removal statistics.

> 33189 index pages have been deleted, 0 are currently reusable.

> Does it mean out of 77113 index pages, 33189 were deleted?

Yeah --- so almost half the space in the index is free space (more than
half according to the later report).  Possibly you should be vacuuming
this table a bit more often...

> Why does index and table INFO reported twice with different row version
> numbers on a vacuum run.

Because it had to do two passes of row removal, due to not having enough
vacuum_mem to remember all the dead rows at once.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <19097.1130793779@sss.pgh.pa.us>
Permalink:  ../19097.1130793779@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19097.1130793779@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, SSubbiah@netopia.com
  Subject: Re: Vacuum Verbose output
  In-Reply-To: <19097.1130793779@sss.pgh.pa.us>
  References: <6B26A56846293C4488B54CF3E440335403E2F77A@mxca2.corp.netopia.com> <19097.1130793779@sss.pgh.pa.us>

* 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