Re: log_duration - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: log_duration
Date
Msg-id GNELIHDDFBOCMGBFGEFOGEIHCFAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: log_duration  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: log_duration
Re: [HACKERS] log_duration
Re: [HACKERS] log_duration
List pgsql-hackers
> Someone asked about this at FOSDEM. The only way I know to do it is look
> in the pgsql_temp directory, but they disappear pretty quickly.  Folks,
> do we need something to report sort file usage?

How about a new GUC variable: log_sort_tempfiles

And in the code that creates the temp file, if the GUC variable is true,
then do:

elog(LOG, "Sort needed temp file.  Sort required 2456K.  Try increasing
sort_mem.");

Or something?

Chris



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: log_duration
Next
From: Bruce Momjian
Date:
Subject: Re: Changing the default configuration (was Re: