Re: sobre vacuum

From: "Guido Barosio" <gbarosio(at)gmail(dot)com>
To: "Jaime Casanova" <systemguards(at)gmail(dot)com>
Cc: dblackbeer <dblackbeer(at)gmail(dot)com>, "lista postgresql" <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: sobre vacuum
Date: 2007-01-06 20:05:07
Message-ID: f7f6b4c70701061205s57ea9a10rda0d199d3777287a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

De paso podrias averiguar si tus indices estan siendo utilizados como
esperas, me ha pasado de tener indices de mas y que no estaban siendo
utilizados por query alguno. Eso te puede ayudar a decidir drop'ear
algun que otro indice, o regenerarlo.

Hablando de regenerar, sabes que tan grande es realmente la tabla? Has
utilizado la herramient de contrib (no recuerdo el nombre) que te
informa respecto al dead space en tu tabla? Eso te va a dar una idea
de cuanto espacio realmente ocupan los datos de tu tabla.

Hay situaciones en las que es optimo dropear un indice y volver a
generarlo, en lugar de esperar a que vacuum termine de dar su
"vueltita" por la tabla.

Mis dos centavos :)

Saludos,
Guido Barosio

On 1/6/07, Jaime Casanova <systemguards(at)gmail(dot)com> wrote:
> On 1/6/07, dblackbeer <dblackbeer(at)gmail(dot)com> wrote:
> > > > Esta documentado esto en algun lado?
> > > >
> > >
> > > si.
> > > http://www.postgresql.org/docs/8.2/static/routine-vacuuming.html#AUTOVACUUM
> >
> > me referia si estaba documentado lo de saltear el analisis sobre
> > determinada tabla.
> >
>
> se a lo que te referias...
>
> If any of the values in pg_autovacuum are set to a negative number, or
> if a row is not present at all in pg_autovacuum for any particular
> table, the corresponding values from postgresql.conf are used.
>
> There is not currently any support for making pg_autovacuum entries,
> except by doing manual INSERTs into the catalog. This feature will be
> improved in future releases, and it is likely that the catalog
> definition will change.
>
> Asi que para que haya un comportamiento especial para una tabla debes
> insertar registros en el catalogo pg_autovacuum.
>
> la misma pagina te da un enlace a la estructura del catalogo
> pg_autovacuum http://www.postgresql.org/docs/8.2/static/catalog-pg-autovacuum.html
>
> en donde los dos primeros campos son los que te interesan:
> vacrelid y enabled
>
> --
> Atentamente,
> Jaime Casanova
>
> "Programming today is a race between software engineers striving to
> build bigger and better idiot-proof programs and the universe trying
> to produce bigger and better idiots.
> So far, the universe is winning."
> Richard Cook
>
> ---------------------------(fin del mensaje)---------------------------
> TIP 2: puedes desuscribirte de todas las listas simultáneamente
> (envíe "unregister TuDirecciónDeCorreo" a majordomo(at)postgresql(dot)org)
>

--
Guido Barosio
-----------------------
http://www.globant.com
guido(dot)barosio(at)globant(dot)com

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Guido Barosio 2007-01-06 20:07:58 Re: desconectar usuarios
Previous Message Jaime Casanova 2007-01-06 19:56:05 Re: sobre vacuum