Re: BUG #17793: Query with large number of joins crashes PostgreSQL

Поиск
Список
Период
Сортировка
От Francisco Olarte
Тема Re: BUG #17793: Query with large number of joins crashes PostgreSQL
Дата
Msg-id CA+bJJbyxXx-s5Ur2nxEvpzWuGtAuNEe5f=PE7axPQaH2jcmxgQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #17793: Query with large number of joins crashes PostgreSQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi Tom:

On Tue, 14 Feb 2023 at 15:47, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> If overcommit-disabled doesn't seem practical, another idea that's
> been recommended is to start the postmaster under a "ulimit -v"
> setting chosen to cause plain ENOMEM failures before the OOM
> killer kicks in.

This may certainly help, but if I read the oomkiller stuff correctly
you can have a case where Pg has its (big) share of memory allocated
and commited, some other processes have overallocated and have
uncommitted memory and when one of these tries to commit some mem the
OOM kills Pg because it is the biggest memory user. Not an covercommti
fan, so not too sure.

FOS



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17782: ERROR: variable not found in subplan target lists
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #17792: MERGE uses uninitialized pointer and crashes when target tuple is updated concurrently