pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Merlin Moncure <merlin.moncure@rcsonline.com>
Cc: pgsql-performance@postgresql.org, Carlos Benkendorf <carlosbenkendorf@yahoo.com.br>
Subject: Re: How much expensive are row level statistics?
Date: Thu, 15 Dec 2005 16:44:48 -0700
Message-ID: <20051215234448.GA47382@winnie.fuhr.org> (raw)
In-Reply-To: <1667.1134444045@sss.pgh.pa.us>
References: <6EE64EF3AB31D5448D0007DD34EEB3417DDAC9@Herge.rcsinc.local>
	<2506.1134428461@sss.pgh.pa.us>
	<20051213010751.GA63416@winnie.fuhr.org>
	<1667.1134444045@sss.pgh.pa.us>

On Mon, Dec 12, 2005 at 10:20:45PM -0500, Tom Lane wrote:
> Given the rather lackadaisical way in which the stats collector makes
> the data available, it seems like the backends are being much too
> enthusiastic about posting their stats_command_string status
> immediately.  Might be worth thinking about how to cut back the
> overhead by suppressing some of these messages.

Would a GUC setting akin to log_min_duration_statement be feasible?
Does the backend support, or could it be easily modified to support,
a mechanism that would post the command string after a configurable
amount of time had expired, and then continue processing the query?
That way admins could avoid the overhead of posting messages for
short-lived queries that nobody's likely to see in pg_stat_activity
anyway.

-- 
Michael Fuhr



view thread (15+ messages)  latest in thread

Message-ID: <20051215234448.GA47382@winnie.fuhr.org>
Permalink:  ../20051215234448.GA47382@winnie.fuhr.org/
Also on:    postgresql.org/message-id/20051215234448.GA47382@winnie.fuhr.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mike@fuhr.org, tgl@sss.pgh.pa.us, merlin.moncure@rcsonline.com, carlosbenkendorf@yahoo.com.br
  Subject: Re: How much expensive are row level statistics?
  In-Reply-To: <20051215234448.GA47382@winnie.fuhr.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