Re: postgres 8.4.9: running out of memory (malloc fails) when running a transaction that runs a LOT of selects

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: postgres 8.4.9: running out of memory (malloc fails) when running a transaction that runs a LOT of selects
Дата
Msg-id 201207201104.32724.andres@2ndquadrant.com
обсуждение исходный текст
Ответ на postgres 8.4.9: running out of memory (malloc fails) when running a transaction that runs a LOT of selects  (Benedikt Grundmann <bgrundmann@janestreet.com>)
Ответы Re: postgres 8.4.9: running out of memory (malloc fails) when running a transaction that runs a LOT of selects  (Benedikt Grundmann <bgrundmann@janestreet.com>)
Список pgsql-hackers
Hi,

On Friday, July 20, 2012 09:19:31 AM Benedikt Grundmann wrote:
> We yesterday encountered a program that in a degenerate case issued in
> a single transaction a huge number of selects (in a single transaction
> but each select in a separate call to PGExec) (huge = ~ 400,000).
> 
> That transaction would continue to eat memory up until a point where
> calls to malloc (in aset.c) would fail and log for example:
> 
> ,"out of memory","Failed on request of size 11."
Could you show us the different statements youre running in that transaction? 
Are you using any user defined functions, deferred foreign keys, or anything  
like that?

After youve got that "out of memory" message, the log should show a list of 
memory contexts with the amount of memory allocated in each. Could you include 
that in a mail?

Greetings,

Andres
-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: postgres 8.4.9: running out of memory (malloc fails) when running a transaction that runs a LOT of selects
Следующее
От: Shigeru HANADA
Дата:
Сообщение: Re: pgsql_fdw in contrib