pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: statistics buffer is full
Date: Wed, 08 Nov 2006 19:27:49 -0800
Message-ID: <1163042869.28784.55.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0611081843120.23695@discord.home.frostconsultingllc.com>
References: <Pine.LNX.4.64.0611081843120.23695@discord.home.frostconsultingllc.com>

On Wed, 2006-11-08 at 18:46 -0800, Jeff Frost wrote:
> What does the message 'statistics buffer is full' mean?  And if I saw lots of 
> these in my logs what sort of bad things would happen?  Presumably this is 
> related to the planner statistics?  Would I expect to have bad plans if this 
> happens and how would I resolve it?  This is what I found in the source, but 
> I'm not really sure what's going on here:

Usually it means that you have stats_command_string turned on :)

> 
> Part of:
> 
> pgstat_recvbuffer(void)
> <snip>
>                  /*
>                   * As long as we have buffer space we add the socket to the read
>                   * descriptor set.
>                   */
>                  if (msg_have <= (int) (PGSTAT_RECVBUFFERSZ - sizeof(PgStat_Msg))
> )
>                  {
>                          FD_SET(pgStatSock, &rfds);
>                          maxfd = pgStatSock;
>                          overflow = false;
>                  }
>                  else
>                  {
>                          if (!overflow)
>                          {
>                                  ereport(LOG,
>                                                  (errmsg("statistics buffer is full")));
>                                  overflow = true;
>                          }
>                  }
> 
> 
-- 

      === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive  PostgreSQL solutions since 1997
             http://www.commandprompt.com/

Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate






view thread (14+ messages)  latest in thread

Message-ID: <1163042869.28784.55.camel@localhost.localdomain>
Permalink:  ../1163042869.28784.55.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1163042869.28784.55.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jd@commandprompt.com, jeff@frostconsultingllc.com
  Subject: Re: statistics buffer is full
  In-Reply-To: <1163042869.28784.55.camel@localhost.localdomain>
  References: <Pine.LNX.4.64.0611081843120.23695@discord.home.frostconsultingllc.com> <1163042869.28784.55.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox