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

From Josh Berkus
Subject Re: RFC: Timing Events
Date
Msg-id 50986AFD.7060305@agliodbs.com
Whole thread Raw
In response to Re: RFC: Timing Events  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: RFC: Timing Events  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-hackers
> Huh?  The typical use-case is to enable it for all sessions by
> including it in shared_preload_libraries.  That doesn't require any
> particular session to be superuser.  (If you're superuser you can then
> turn it *off* in your session, should you wish.)

It's not practical to have auto-explain on for all queries on a server
which is processing 10K queries/minute.  And non-superusers can't alter
the settings in their session, even the min_duration.

A practical use of auto-explain would involve during it on for a single
user session, or for a specific database user, neither of which are
possible.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Pg_upgrade speed for many tables
Next
From: Bruce Momjian
Date:
Subject: Re: Pg_upgrade speed for many tables