pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: Joshua D. Drake <jd@commandprompt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: statistics buffer is full
Date: Thu, 9 Nov 2006 09:14:48 -0300
Message-ID: <20061109121448.GS14845@alvh.no-ip.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0611082145020.23695@discord.home.frostconsultingllc.com>
References: <Pine.LNX.4.64.0611081843120.23695@discord.home.frostconsultingllc.com>
	<1163042869.28784.55.camel@localhost.localdomain>
	<Pine.LNX.4.64.0611081927530.23695@discord.home.frostconsultingllc.com>
	<1163043819.28784.57.camel@localhost.localdomain>
	<Pine.LNX.4.64.0611082145020.23695@discord.home.frostconsultingllc.com>

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.



view thread (14+ messages)

Message-ID: <20061109121448.GS14845@alvh.no-ip.org>
Permalink:  ../20061109121448.GS14845@alvh.no-ip.org/
Also on:    postgresql.org/message-id/20061109121448.GS14845@alvh.no-ip.org

 · 

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: alvherre@commandprompt.com, jeff@frostconsultingllc.com, jd@commandprompt.com
  Subject: Re: statistics buffer is full
  In-Reply-To: <20061109121448.GS14845@alvh.no-ip.org>
  References: <Pine.LNX.4.64.0611081843120.23695@discord.home.frostconsultingllc.com> <1163042869.28784.55.camel@localhost.localdomain> <Pine.LNX.4.64.0611081927530.23695@discord.home.frostconsultingllc.com> <1163043819.28784.57.camel@localhost.localdomain> <Pine.LNX.4.64.0611082145020.23695@discord.home.frostconsultingllc.com> <20061109121448.GS14845@alvh.no-ip.org>

* 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