| От | Josh Berkus |
|---|---|
| Тема | Re: Odd behavior with temp usage logging |
| Дата | |
| Msg-id | 497F457B.10108@agliodbs.com обсуждение исходный текст |
| Ответ на | Re: Odd behavior with temp usage logging (Craig Ringer <craig@postnewspapers.com.au>) |
| Список | pgsql-performance |
Craig Ringer wrote: > Josh Berkus wrote: >> Folks, >> >> I turned on temp file logging for PostgreSQL to see if I needed to >> adjust work_mem. Oddly, it's logging file usage up to 33 times per >> executed query (and no, the query isn't large enough to need 33 separate >> sorts). > > Are you sure there's not a sort happening inside a loop? It might help > if you posted the actual log messages along with the output of `EXPLAIN > ANALYZE' on your query. Hmmm, it's possible. The sort sizes seem very large for the query in question, though. Will have to check when I get back on the system. That would make a TODO in tempfile logging though ... it would be *far* more useful to colect summary stats per query than log each individual sort. --Josh
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера