Skip site navigation (1) Skip section navigation (2)

Re: Problemas con pg_dump

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Sergio Gabriel Rodriguez <sgrodriguez(at)gmail(dot)com>
Cc: Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Problemas con pg_dump
Date: 2012-09-20 13:53:39
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-es-ayuda
Excerpts from Sergio Gabriel Rodriguez's message of jue sep 20 09:04:46 -0300 2012:

> Nuestra base de datos de produccion, postgres 8.4 tiene un tamaño
> aproximado de 200 GB, la mayoría de los datos son large objects (174 GB),
> hasta hace algunos meses utilizábamos pg_dump para realizar los backups,
> tomaba alrededor de 3 - 4 horas realizar todo el proceso. Hace un tiempo el
> proceso se volvió interminable, tomaba uno o dos días realizarlo, notamos
> que el proceso decía considerablemente al comenzar el backup de los large
> object, por lo que tuvimos que optar por backups físicos.

Hmm, se discutió algo parecido en pgsql-hackers y resultó en este
commit.  Quizás te ayude a explicar el problema.

Author: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
Branch: master [eeb6f37d8] 2012-06-21 15:30:26 +0300

    Add a small cache of locks owned by a resource owner in ResourceOwner.
    This speeds up reassigning locks to the parent owner, when the transaction
    holds a lot of locks, but only a few of them belong to the current resource
    owner. This is particularly helps pg_dump when dumping a large number of
    The cache can hold up to 15 locks in each resource owner. After that, the
    cache is marked as overflowed, and we fall back to the old method of
    scanning the whole local lock table. The tradeoff here is that the cache has
    to be scanned whenever a lock is released, so if the cache is too large,
    lock release becomes more expensive. 15 seems enough to cover pg_dump, and
    doesn't have much impact on lock release.
    Jeff Janes, reviewed by Amit Kapila and Heikki Linnakangas.

Álvaro Herrera      
PostgreSQL Development, 24x7 Support, Training & Services

In response to


pgsql-es-ayuda by date

Next:From: Cesar MartinDate: 2012-09-20 14:02:29
Subject: Re: Problemas con pg_dump
Previous:From: Gilberto CastilloDate: 2012-09-20 13:18:39
Subject: Re: Problemas con pg_dump

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group