Thread: statistics buffer is full

statistics buffer is full

From
Bjoern Metzdorf
Date:
Hi,

one of our heavy loaded postgresql servers regularly gives

LOG:  statistics buffer is full

Sometimes those messages come when there is a load peak on the server,
so it comes to my mind that it may be possible to improve performance by
tweaking postgresql.conf to get rid of that full buffers.

We run 7.4.1 on Linux 2.4 (Dual Xeon 2,4, 3 GB RAM). pg_autovacuum is
running.

postgresql.conf (tweaked parameters only):

shared_buffers = 20000
sort_mem = 16384
fsync = false
wal_buffers = 256
checkpoint_segments = 6
log_timestamp = true
stats_start_collector = true
stats_row_level = true

Any hints?

Regards,
Bjoern


Re: statistics buffer is full

From
Tom Lane
Date:
Bjoern Metzdorf <bm@turtle-entertainment.de> writes:
> one of our heavy loaded postgresql servers regularly gives
> LOG:  statistics buffer is full

You could try increasing PGSTAT_RECVBUFFERSZ in include/pgstat.h
(this will require recompiling src/backend/postmaster/pgstat.c
to take effect).  I'm not convinced it will help; it may just allow
the stats collector to fall further behind.  But if your problem
is load spikes it might help.

            regards, tom lane