Re: stats_command_string default? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: stats_command_string default?
Date
Msg-id 11351.1045259474@sss.pgh.pa.us
Whole thread Raw
In response to stats_command_string default?  (Kevin Brown <kevin@sysexperts.com>)
Responses Re: stats_command_string default?
Re: stats_command_string default?
List pgsql-hackers
Kevin Brown <kevin@sysexperts.com> writes:
> Would it make more sense to enable stats_command_string by default?

I'd vote against it.  If we turn it on by default, people are paying
for a feature they may not even know exists.  Once they find out about
it and decide they want it, they can turn it on easily enough.

If you can show that the overhead is unmeasurable, that'd indicate that
this argument is bogus; but I suspect it's not negligible, at least on
simple queries.

> It would also be handy if users could see their own queries while the
> rest remain blank.  That would require changing
> pg_stat_get_backend_activity() so that it returns a value if the user
> is the superuser or if the user asking for the answer is the same as
> the user who owns the backend entry being looked up.  Are there any
> pitfalls to implementing that?

Seems reasonable offhand ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: location of the configuration files
Next
From: Tilo Schwarz
Date:
Subject: Re: Changing the default configuration (was Re: [pgsql-advocacy]