Re: auto_explain WAS: RFC: Timing Events - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: auto_explain WAS: RFC: Timing Events
Date
Msg-id 20121122130327.GB4316@alvh.no-ip.org
Whole thread Raw
In response to Re: auto_explain WAS: RFC: Timing Events  (Greg Smith <greg@2ndQuadrant.com>)
List pgsql-hackers
Greg Smith escribió:

> If I could just turn off logging just during those
> periods--basically, throwing them away only when some output rate
> throttled component hit its limit--I could still find them in the
> data collected the rest of the time.  There are some types of
> problems that also only occur under peak load that this idea would
> miss, but you'd still be likely to get *some* of them,
> statistically.

Uhm, what if you had a simple script that changed postgresql.conf and
SIGHUP'ed postmaster?  You could have it turn logging on and off
depending on predefined system load watermarks.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Amit kapila
Date:
Subject: Re: Proposal for Allow postgresql.conf values to be changed via SQL
Next
From: Boszormenyi Zoltan
Date:
Subject: Re: PQconninfo function for libpq