Re: sort_mem statistics ... - Mailing list pgsql-hackers

From Tom Lane
Subject Re: sort_mem statistics ...
Date
Msg-id 14404.1129673702@sss.pgh.pa.us
Whole thread Raw
In response to sort_mem statistics ...  ("Marc G. Fournier" <scrappy@postgresql.org>)
Responses Re: sort_mem statistics ...
Re: sort_mem statistics ...
Re: sort_mem statistics ...
List pgsql-hackers
"Marc G. Fournier" <scrappy@postgresql.org> writes:
> do we maintain anything anywhere for this?  mainly, some way of 
> determining # of 'sorts to disk' vs 'sort in memory', to determine whether 
> or not sort_mem is set to a good value?

As of 8.1 you could turn on trace_sort to collect some data about this.

Looking at the code, I notice that the messages are all emitted at level
NOTICE.  Perhaps that was not such a good idea --- it'd be pretty much
in-your-face if it were on all the time.  Does anyone think it'd be a
good idea to emit the trace_sort messages at level LOG, instead?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Question about Ctrl-C and less
Next
From: Martijn van Oosterhout
Date:
Subject: Re: 2nd try @NetBSD/2.0 Alpha