dbTalk Databases Forums  

[BUGS] BUG #1910: pg_autovacuum failed on a table with very frequent r/w access

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1910: pg_autovacuum failed on a table with very frequent r/w access in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Antoine Bajolet
 
Posts: n/a

Default [BUGS] BUG #1910: pg_autovacuum failed on a table with very frequent r/w access - 09-26-2005 , 11:53 AM







The following bug has been logged online:

Bug reference: 1910
Logged by: Antoine Bajolet
Email address: antoine.bajolet (AT) tdf (DOT) fr
PostgreSQL version: 8.0.2
Operating system: Linux 2.4.29
Description: pg_autovacuum failed on a table with very frequent r/w
access
Details:

Hello,

Whe have a Database with one table supporting near one throusand
INSERT/DELETE per second.
pg_autovacuum is working on the server.

After near one month of working without trouble, CPU load and System load
started to increase constantly each day to the midnight vacuum full, which
still works.

Launching pg_vacuum -d 3 (debug), there are significant values on this table
:
[2005-09-26 15:46:21 CEST] INFO: table name:
cristal_tnt_bpre."public"."cache_alarme_en_cours"
[2005-09-26 15:46:21 CEST] INFO: relid: 29710; relisshared: 0
[2005-09-26 15:46:21 CEST] INFO: reltuples: 366.000000; relpages:
328
[2005-09-26 15:46:21 CEST] INFO: curr_analyze_count: -1082773107;
curr_vacuum_count: 2147483647
[2005-09-26 15:46:21 CEST] INFO: last_analyze_count: -1082773107;
last_vacuum_count: 2147483647
[2005-09-26 15:46:21 CEST] INFO: analyze_threshold: 566;
vacuum_threshold: 1732

It seems to me strange to find *negative* values in curr_analyze_count, and
curr_vacuum_count is equal to 2^31 - 1, the maximum value for a 32bits
signed integer.

VACUUM FULL ANALYZE don't resets thoses values (i'm not a postgresql expert
to know what those values means).

The only solution i found is to add a cron launching vacuumdb -z each minute
on this table : The whole system is in production state and can't be easely
restarted.

It seems to be an error in pg_autovacuum, or perhaps on the statistics
collector.

Best regards,
Antoine Bajolet

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.