Re: Backends dying due to memory exhaustion--I'm stonkered

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Backends dying due to memory exhaustion--I'm stonkered
Дата
Msg-id m3r91pr4ik.fsf@belphigor.mcnaught.org
обсуждение исходный текст
Ответ на Backends dying due to memory exhaustion--I'm stonkered  (Doug McNaught <doug@wireboard.com>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Doug McNaught <doug@wireboard.com> writes:
> > From what I've seen so far, all the backends (other than the one that
> > actually crashes) seem to survive the SIGTERM I send to the
> > postmaster.  How do I tell which one is which?  The command line?
>
> SIGTERM to the postmaster commands polite shutdown, ie, don't accept
> new connections but allow existing clients to finish out their sessions.
> So unless your clients are short-lived I wouldn't expect SIGTERM'ing
> the postmaster to do much.
>
> If you want to force things to happen then you should send SIGINT to
> the postmaster, which in turn will SIGTERM its backends, which in
> theory will abort their transactions and shut down.

OK, this makes sense.  I must have missed it in the manual.  SIGINT it
is.

Waiting for the next crash with anticipation...

-Doug

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

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: Re: Too many open files! how do I fix on linux?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: This script will crash the connection