Re: statistics buffer is full - Mailing list pgsql-admin

From Joshua D. Drake
Subject Re: statistics buffer is full
Date
Msg-id 1163042869.28784.55.camel@localhost.localdomain
Whole thread Raw
In response to statistics buffer is full  (Jeff Frost <jeff@frostconsultingllc.com>)
Responses Re: statistics buffer is full
List pgsql-admin
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




pgsql-admin by date:

Previous
From: Jeff Frost
Date:
Subject: statistics buffer is full
Next
From: Jeff Frost
Date:
Subject: Re: statistics buffer is full