Re: Rethinking stats communication mechanisms

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Douglas McNaught <doug(at)mcnaught(dot)org>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, PFC <lists(at)peufeu(dot)com>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Rethinking stats communication mechanisms
Date: 2006-06-18 17:20:34
Message-ID: 87hd2i5qjh.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Douglas McNaught <doug(at)mcnaught(dot)org> writes:

> (a) and (b): of course you would only do it on a temporary basis for
> problem diagnosis.

Temporary or not it isn't really an option when you're dealing with high
volumes. You could imagine a setup where say, 1% of page requests randomly
turn on debugging to get a random sample of database traffic. There are always
solutions.

But my point is that there's no reason to think that only long queries are
useful for snapshots. Short queries are equally capable of consuming resources
in aggregate. Hiding some subset of queries assuming they're uninteresting is
only going to produce deceptive results data.

> Ideally, you'd find the query storm problem in load testing before you
> ever got to production. I hope to someday visit that planet--it must
> be nice.

Indeed, when you get there send me a postcard :)

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-06-18 17:35:12 Re: Segfault Exiting psql
Previous Message Tom Lane 2006-06-18 16:58:09 Re: union all bug?