Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 39EE29FB2A9 for ; Wed, 8 Nov 2006 23:26:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 19051-04 for ; Wed, 8 Nov 2006 23:26:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 0453D9FB1BF for ; Wed, 8 Nov 2006 23:26:52 -0400 (AST) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kA93Qlup003845 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 8 Nov 2006 19:26:48 -0800 Subject: Re: statistics buffer is full From: "Joshua D. Drake" To: Jeff Frost Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: Command Prompt, Inc. Date: Wed, 08 Nov 2006 19:27:49 -0800 Message-Id: <1163042869.28784.55.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 08 Nov 2006 19:26:48 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/79 X-Sequence-Number: 23606 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) > > /* > * 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