Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 768A09FA618 for ; Thu, 9 Nov 2006 08:15:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 21638-09 for ; Thu, 9 Nov 2006 08:14:59 -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 84D299FA492 for ; Thu, 9 Nov 2006 08:14:58 -0400 (AST) Received: from alvh.no-ip.org (200-126-99-175.bk7-dsl.surnet.cl [200.126.99.175]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kA9CEpuk012945; Thu, 9 Nov 2006 04:14:52 -0800 Received: by alvh.no-ip.org (Postfix, from userid 1000) id A4831C2D33D; Thu, 9 Nov 2006 09:14:48 -0300 (CLST) Date: Thu, 9 Nov 2006 09:14:48 -0300 From: Alvaro Herrera To: Jeff Frost Cc: "Joshua D. Drake" , pgsql-admin@postgresql.org Subject: Re: statistics buffer is full Message-ID: <20061109121448.GS14845@alvh.no-ip.org> Mail-Followup-To: Jeff Frost , "Joshua D. Drake" , pgsql-admin@postgresql.org References: <1163042869.28784.55.camel@localhost.localdomain> <1163043819.28784.57.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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]); Thu, 09 Nov 2006 04:14:52 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/92 X-Sequence-Number: 23619 Jeff Frost wrote: > On Wed, 8 Nov 2006, Joshua D. Drake wrote: > > >>hah! Does that mean it's just the buffering for pg_stat_activity and not > >>for > >>planner statistics? That doesn't make me feel too bad in this case. > > > >Yeah it is nothing to worry about, however turning it off is certainly a > >performance benefit. > > > > So, then the next question: is that error because the command string was > too long or because there were too many command strings in the buffer at > once (i.e. it got backed up a bit and filled)? Yeah, it got backed up. It's an UDP socket and it's having trouble keeping up. Disabling stats_command_string removes the higher producer of "statistics" traffic, and the price you pay for it is that queries don't show up in pg_stat_activity. You can still see the tags in ps though, and of course you'll have them in the log if you enabled that. > It would be a drag to be without pg_stat_activity on this system. The > performance detriment is lessened in 8.2, correct? Yes, by not using the UDP socket to transmit the command string in the first place. They are now just stored in memory, which is considerably faster. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.