Re: query slow; strace output worrisome

Поиск
Список
Период
Сортировка
От Brian Cox
Тема Re: query slow; strace output worrisome
Дата
Msg-id 4BBB604F.6060005@ca.com
обсуждение исходный текст
Ответ на query slow; strace output worrisome  (Brian Cox <brian.cox@ca.com>)
Ответы Re: query slow; strace output worrisome
Список pgsql-performance
On 04/06/2010 01:18 AM, Craig Ringer [craig@postnewspapers.com.au] wrote:
> I'm wondering if the issue is with strace rather than Pg. That is to
> say, that strace is trying to print:
Thanks, Craig: I do think that this is a strace issue.

> As for what Pg is doing: creat() returns -1 on error and a file
> descriptor otherwise, so the return value appears to indicate success.
> I'm kind of wondering what the Pg backend is actually _doing_ though -
> if it was using sort temp files you'd expect
> open()/write()/read()/close() not just creat() calls.
My quesiton exactly: what is the backend doing calling creat() over and
over again? Note that this query does complete -- in 30-40 mins.

Brian

В списке pgsql-performance по дате отправления:

Предыдущее
От: Artiom Makarov
Дата:
Сообщение: Re: temp table "on commit delete rows": transaction overhead
Следующее
От: Ireneusz Pluta
Дата:
Сообщение: Re: 3ware vs. MegaRAID