Skip to content

Commit 50c7e83

Browse files
committed
Update new optional VACUUM FULL hint for translations, per Alvaro.
1 parent 3aa3760 commit 50c7e83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/backend/commands/vacuumlazy.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
*
3737
*
3838
* IDENTIFICATION
39-
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.84 2007/02/21 22:15:21 momjian Exp $
39+
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.85 2007/02/21 22:47:45 momjian Exp $
4040
*
4141
*-------------------------------------------------------------------------
4242
*/
@@ -185,10 +185,10 @@ lazy_vacuum_rel(Relation onerel, VacuumStmt *vacstmt)
185185
(errmsg("relation \"%s.%s\" contains more than \"max_fsm_pages\" pages with useful free space",
186186
get_namespace_name(RelationGetNamespace(onerel)),
187187
RelationGetRelationName(onerel)),
188-
errhint("Consider%sincreasing the configuration parameter \"max_fsm_pages\".",
189-
/* Only suggest VACUUM FULL if 20% free */
190-
(vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20
191-
? " using VACUUM FULL on this relation or ": " "))));
188+
errhint((vacrelstats->tot_free_pages > vacrelstats->rel_pages * 0.20 ?
189+
/* Only suggest VACUUM FULL if 20% free */
190+
"Consider using VACUUM FULL on this relation or increasing the configuration parameter \"max_fsm_pages\"." :
191+
"Consider increasing the configuration parameter \"max_fsm_pages\"."))));
192192

193193
/* Update statistics in pg_class */
194194
vac_update_relstats(RelationGetRelid(onerel),

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy