Re: collector/autovacuum after crash (8.1beta3)

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Szima Gábor <sygma(at)tesla(dot)hu>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: collector/autovacuum after crash (8.1beta3)
Date: 2005-10-21 13:44:23
Message-ID: 20051021134423.GD12372@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Szima Gábor wrote:

> At system crash or poweroff the autovacuum statistics will be lost,
> because this statistics only stored in RAM and saved/restored at
> service shutdown/startup.
> I think it should be saved periodically and not to be deleted after
> crash.

I don't remember why it was that we made the stat file be dropped on
crash recovery, but there was a reason. I guess you could research the
reason; it was a thread which ended with an autovacuum patch from me.
You could look the CVS logs for the pgstat.c file.

--
Alvaro Herrera http://www.advogato.org/person/alvherre
"Someone said that it is at least an order of magnitude more work to do
production software than a prototype. I think he is wrong by at least
an order of magnitude." (Brian Kernighan)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2005-10-21 13:52:27 Re: Seeing context switch storm with 10/13 snapshot of
Previous Message Martijn van Oosterhout 2005-10-21 13:40:43 Re: Question about Ctrl-C and less