Re: log_duration

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: log_duration
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGEIHCFAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: log_duration  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: log_duration  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [HACKERS] log_duration  ()
Re: [HACKERS] log_duration  ()
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: log_duration
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Changing the default configuration (was Re: