Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Overhead for stats_command_string et al, take

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] Overhead for stats_command_string et al, take
Date: 2006-06-27 19:07:05
Message-ID: 200606271907.k5RJ75I10301@momjian.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Applied.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> Tom Lane wrote:
> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
> > > Seeing stats_command_string with almost zero overhead is great news!
> > > Should we remove that setting and just have it enabled all
> > > the time?
> > 
> > If you don't need it, you shouldn't have to pay any overhead for it,
> > I think.  One could make an argument now for having stats_command_string
> > default to ON, though.
> 
> The attached patch makes stats_command_string default to 'on', and
> updates the documentation.
> 
> > Something that might also be interesting is an option to suppress
> > per-command ps_status reporting.  On machines where updating ps status
> > takes a kernel call, there's now a pretty good argument why you might
> > want to turn that off and rely on pg_stat_activity instead.
> 
> OK, can I get a timing report from someone with the title on/off that
> shows a difference?
> 
> -- 
>   Bruce Momjian   bruce(at)momjian(dot)us
>   EnterpriseDB    http://www.enterprisedb.com
> 
>   + If your life is a hard drive, Christ can be your backup. +


> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>        message can get through to the mailing list cleanly

-- 
  Bruce Momjian   bruce(at)momjian(dot)us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-hackers by date

Next:From: Stefan KaltenbrunnerDate: 2006-06-27 19:13:14
Subject: Re: GIN index creation extremely slow ?
Previous:From: Mark WoodwardDate: 2006-06-27 19:02:13
Subject: Re: SO_SNDBUF size is small on win32?

pgsql-patches by date

Next:From: Magnus HaganderDate: 2006-06-27 20:26:13
Subject: Re: Client build of MSVC6+ patch
Previous:From: Mark WoodwardDate: 2006-06-27 19:02:13
Subject: Re: SO_SNDBUF size is small on win32?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group