]> granicus.if.org Git - postgresql/commitdiff
Update new optional VACUUM FULL hint for translations, per Alvaro.
authorBruce Momjian <bruce@momjian.us>
Wed, 21 Feb 2007 22:47:45 +0000 (22:47 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 21 Feb 2007 22:47:45 +0000 (22:47 +0000)
src/backend/commands/vacuumlazy.c

index b892ea19ab377b67bebfb26ac05727645c935663..b93288c388b60f56e7f08c8ac4f33539095c4e29 100644 (file)
@@ -36,7 +36,7 @@
  *
  *
  * 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)
                                (errmsg("relation \"%s.%s\" contains more than \"max_fsm_pages\" pages with useful free space",
                                                get_namespace_name(RelationGetNamespace(onerel)),
                                                RelationGetRelationName(onerel)),
-                                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 ": " "))));
+                                errhint((vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20 ?
+                                                       /* Only suggest VACUUM FULL if 20% free */
+                                                       "Consider using VACUUM FULL on this relation or increasing the configuration parameter \"max_fsm_pages\"." :
+                                                       "Consider increasing the configuration parameter \"max_fsm_pages\"."))));
 
        /* Update statistics in pg_class */
        vac_update_relstats(RelationGetRelid(onerel),