Commit 50c7e83c authored by Bruce Momjian's avatar Bruce Momjian

Update new optional VACUUM FULL hint for translations, per Alvaro.

parent 3aa37600
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.84 2007/02/21 22:15:21 momjian Exp $ * $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.85 2007/02/21 22:47:45 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -185,10 +185,10 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt) ...@@ -185,10 +185,10 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt)
(errmsg("relation \"%s.%s\" contains more than \"max_fsm_pages\" pages with useful free space", (errmsg("relation \"%s.%s\" contains more than \"max_fsm_pages\" pages with useful free space",
get_namespace_name(RelationGetNamespace(onerel)), get_namespace_name(RelationGetNamespace(onerel)),
RelationGetRelationName(onerel)), RelationGetRelationName(onerel)),
errhint("Consider%sincreasing the configuration parameter \"max_fsm_pages\".", errhint((vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20 ?
/* Only suggest VACUUM FULL if 20% free */ /* Only suggest VACUUM FULL if 20% free */
(vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20 "Consider using VACUUM FULL on this relation or increasing the configuration parameter \"max_fsm_pages\"." :
? " using VACUUM FULL on this relation or ": " ")))); "Consider increasing the configuration parameter \"max_fsm_pages\"."))));
/* Update statistics in pg_class */ /* Update statistics in pg_class */
vac_update_relstats(RelationGetRelid(onerel), vac_update_relstats(RelationGetRelid(onerel),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment