Re: multiple active vacuums

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: viart <antoniomena(at)viart(dot)com(dot)br>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: multiple active vacuums
Date: 2012-08-27 04:02:52
Message-ID: CAJKUy5hDnf+dA8NJT+7zyNne6Ceb3RBNVpaNpC1Rd_B-LSm4-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

2012/8/26 viart <antoniomena(at)viart(dot)com(dot)br>:
> Postgres 8.2
> Linux,
>

sabia que postgres 8.2 dejo de tener soporte en Diciembre del 2011?
http://www.postgresql.org/support/versioning/

> Estamos con el AutoVacuum deshabilitado ya hace tiempo y ejecutamos el
> vacuum analize específicamente en algunas tablas los finales de semanas,

y sobre las otras tablas? eventualmente necesitas ejecutar VACUUM
sobre todas las tablas incluyendo los catalogos

> pero ya hace unos meses que a menudo se ejecuta el vacuum de forma
> independiente, en momento que el servidor está con varias conexiones en
> producción y torna todo el procesamiento muy lento.
>

aun cuando deshabilitas autovacuum este se ejecuta para arreglar un
problema llamado "transaction ID wraparound"
(http://www.postgresql.org/docs/8.2/static/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND)

tal como indica la documentación
(http://www.postgresql.org/docs/8.2/static/routine-vacuuming.html#AUTOVACUUM):
"""
Tables whose relfrozenxid value is more than autovacuum_freeze_max_age
transactions old are always vacuumed [...] The first,
pg_autovacuum.enabled, can be set to false to instruct the autovacuum
daemon to skip that particular table entirely. In this case autovacuum
will only touch the table if it must do so to prevent transaction ID
wraparound.
"""

--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Aland Laines 2012-08-27 22:07:29 Una consulta resumen
Previous Message viart 2012-08-26 19:35:19 multiple active vacuums