Re: Vacuum Problem

From: "Usama Dar" <munir(dot)usama(at)gmail(dot)com>
To: "Cedric BUSCHINI" <cbuschini(at)carax(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Vacuum Problem
Date: 2007-12-05 09:35:42
Message-ID: ff0e67090712050135y3a23c1fek7d6c35271cb8d432@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Dec 5, 2007 12:53 PM, Cedric BUSCHINI <cbuschini(at)carax(dot)com> wrote:

> Hello all,
>
> I have a problem. The following message keeps appearing in logs :
>
> ---------------------------------------------------------------------------------------------------------------------------
> WARNING: database "data_base" must be vacuumed within 2606182
> transactions
> HINT: To avoid a database shutdown, execute a full-database VACUUM in
> "data_base".
>
> ---------------------------------------------------------------------------------------------------------------------------
>
> Last week I have run : 'vacuumdb -vz -U postgres -ddata_base'
> Today it's still listed in 'ps aux'
>
> ---------------------------------------------------------------------------------------------------------------------------
> postgres 2113 1.0 1.9 26256 20132 ? D Nov26 130:14
> postgres: postgres data_base [local] VACUUM
> root 2146 0.0 0.1 4616 1508 tty1 Ss Nov28 0:00 -bash
> root 2176 0.0 0.0 4648 996 tty1 S+ Nov28 0:00
> vacuumdb -vz -U postgres -ddata_base
> postgres 2177 0.0 0.3 10260 3572 ? S Nov28 7:12
> postgres: postgres data_base [local] VACUUM waiting
>
> ---------------------------------------------------------------------------------------------------------------------------
>
> In pg_stat_activity I can see two lines mentionning 'vacuum verbose
> analyze'
>
> What can I do ??
> I really need help

it seems to me that you need to vacuum more frequently, and the hint seems
to point you to a vacuum full for now, try "vacuumdb -avz", but beaware it
can be time & resource consuming.

>
> Cedric
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faq
>

--
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Cedric BUSCHINI 2007-12-05 10:04:46 Re: Vacuum Problem
Previous Message Cedric BUSCHINI 2007-12-05 07:53:07 Vacuum Problem