Unix Technical Forum

collector/autovacuum after crash (8.1beta3)

This is a discussion on collector/autovacuum after crash (8.1beta3) within the pgsql Hackers forums, part of the PostgreSQL category; --> Hi All, At system crash or poweroff the autovacuum statistics will be lost, because this statistics only stored in ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 06:19 AM
=?ISO-8859-2?Q?Szima_G=E1bor?=
 
Posts: n/a
Default collector/autovacuum after crash (8.1beta3)


Hi All,

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.



-Sygma

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-11-2008, 06:20 AM
Alvaro Herrera
 
Posts: n/a
Default Re: collector/autovacuum after crash (8.1beta3)

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)

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-11-2008, 06:21 AM
Tom Lane
 
Posts: n/a
Default Re: collector/autovacuum after crash (8.1beta3)

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Szima Gábor wrote:
>> At system crash or poweroff the autovacuum statistics will be lost,


> I don't remember why it was that we made the stat file be dropped on
> crash recovery, but there was a reason.


The fact that it's not WAL-backed and hence couldn't be trusted. But
I think he's complaining about the contrib version of autovacuum anyway.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:42 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com