Re: workaround steps for autovaccum problem

From: "tamanna madaan" <tamanna(dot)madan(at)globallogic(dot)com>
To: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
Cc: "David Fetter" <david(at)fetter(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: workaround steps for autovaccum problem
Date: 2010-09-15 10:30:09
Message-ID: 68666423656E1444A011106C4E085F4DDDB311@ex3-del1.synapse.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks Scott for your reply ...

-----Original Message-----
From: Scott Marlowe [mailto:scott(dot)marlowe(at)gmail(dot)com]
Sent: Wednesday, September 15, 2010 7:36 AM
To: tamanna madaan
Cc: David Fetter; pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] workaround steps for autovaccum problem

On Tue, Sep 14, 2010 at 6:00 PM, tamanna madaan
<tamanna(dot)madan(at)globallogic(dot)com> wrote:
> I know upgrading postgres will resolve the problem permanently .
> But I wanted some workaround for now before I actually upgrade.
> But let me know if I really need to execute `vacuum freeze`
> In the scenario given in my previous update  or I can skip this step.
>
> For your reference I am again updating the scenario :
>
> Autovacuum is getting invoked after every 5 mins and vacuums all the
> database turn by turn and every database is getting its turn of
> autovaccum after every 20 mins as there are 4 databases (template0 ,
> template1, postgres and abc(my database) ).
>
>
> Now suppose , this autovacuum problem occurs and through some script its
> detected immediately at the very onset of the problem and below
> mentioned workaround steps are executed
>
> 1. Stop postgres
> 2. create 256K zero filled  0C01 file in /var/lib/pgsql/data/pg_clog
> folder.
> 3. Start postgres
>
> Then still , do I need to execute 'vacuum freeze' on all databases ??

Vacuum freeze is primarily intended for template databases that never
get updated. If you have to allow conn to template0 to copy it, then
yes maybe.

This whole exercise smacks of doing more work to avoid upgrading than
how much work the upgrade will be.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Roethlisberger 2010-09-15 11:46:07 Re: configure: error: header file <libxml/parser.h> is required for XML support
Previous Message Dave Page 2010-09-15 10:18:44 Re: configure: error: header file <libxml/parser.h> is required for XML support