Re: Hungry postmaster

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hungry postmaster
Дата
Msg-id 14550.1118925960@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Hungry postmaster  ("Ilja Golshtein" <ilejn@yandex.ru>)
Ответы Re: Hungry postmaster  ("Ilja Golshtein" <ilejn@yandex.ru>)
Список pgsql-general
"Ilja Golshtein" <ilejn@yandex.ru> writes:
> At the moment on my Linux box I have process
> 'postmaster' eats all CPU. It corresponds
> with connection closed day before -
> not sure if it was normal disconnect.
> strace shows the process constantly
> makes 'send' syscall with EPIPE result.
> Any ideas how to trace this issue
> and/or prevent such thing in the future?

Send it a SIGINT and see if it goes away.

If so, I would bet that someone did an unconstrained join (ie SELECT
the cross product of some large tables) and killed their client instead
of waiting for the result.  It's not hard to write a SQL query that will
produce terabytes of output :-(

If SIGINT doesn't kill it pretty quickly, try attaching to it with gdb
so you can get a stack trace.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] INHERITS and planning
Следующее
От: "Ilja Golshtein"
Дата:
Сообщение: Re: Hungry postmaster