Re: [previously on HACKERS] "Compacting" a relation

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: [previously on HACKERS] "Compacting" a relation
Date: 2007-02-21 22:29:48
Message-ID: 20070221222948.GC14055@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Bruce Momjian wrote:
>
> I applied the optional VACUUM FULL version, but modified to code to say
> 20% rather than a factor of 5, attached.

String construction does not work well with translations; please
reformulate this.

> + errhint("Consider%sincreasing the configuration parameter \"max_fsm_pages\".",
> + /* Only suggest VACUUM FULL if 20% free */
> + (vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20
> + ? " using VACUUM FULL on this relation or ": " "))));

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2007-02-21 22:37:05 Re: Column storage positions
Previous Message Andrew Hammond 2007-02-21 22:20:51 Re: Plan invalidation design

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-02-21 22:47:57 Re: [previously on HACKERS] "Compacting" a relation
Previous Message Bruce Momjian 2007-02-21 22:16:02 Re: [previously on HACKERS] "Compacting" a relation