Re: How to VACUUM this table? "998994633 estimated total rows"

From: Guido Barosio <gbarosio(at)gmail(dot)com>
To: Chris Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-admin(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to VACUUM this table? "998994633 estimated total rows"
Date: 2006-02-13 20:45:00
Message-ID: f7f6b4c70602131245u3503223ft382e860420a410bc@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-hackers

So this presents the fact that pg_stattuple should prevent and guess [taking
a sample?] that a table needs an urgent lookup instead of ending the scan
and presenting real numbers?

g.-

On 2/13/06, Chris Browne <cbbrowne(at)acm(dot)org> wrote:
>
> gbarosio(at)gmail(dot)com (Guido Barosio) writes:
> > quote: " If you are quite sure it has few if any dead tuples, it might
> be
> > something to try to avoid VACUUMing except as needed to evade the 2^31
> > transaction limit..."
> > You may use the pg_stattuple software, included in the /contrib . This
> will show you the current scenery, and whether you shall clean or not dead
> tuples.
>
> The trouble with pg_stattuple() is that running it is virtually as
> expensive as running the vacuum. For a bit table, you pay all the I/O
> cost, and any costs of the super-long-running-transaction and don't
> even get any cleanup for that cost.
> --
> let name="cbbrowne" and tld="cbbrowne.com" in name ^ "@" ^ tld;;
> http://cbbrowne.com/info/lsf.html
> Philosophy is a game with objectives and no rules.
> Mathematics is a game with rules and no objectives.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2006-02-13 21:11:43 Re: to_date
Previous Message Jim Fu 2006-02-13 20:44:45 to_date

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-02-13 22:15:35 Anyone want to admit to being presinet.com?
Previous Message Tom Lane 2006-02-13 20:44:49 Re: Why don't we allow DNS names in pg_hba.conf?