Re: ERROR: Memory exhausted in AllocSetAlloc(188)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ERROR: Memory exhausted in AllocSetAlloc(188)
Дата
Msg-id 11768.1053549558@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ERROR: Memory exhausted in AllocSetAlloc(188)  (Tilo Schwarz <mail.at.tilo.minus.schwarz.dot.de@remove_last_at.postgresql.org>)
Ответы Re: ERROR: Memory exhausted in AllocSetAlloc(188)  ("Jim C. Nasby" <jim@nasby.net>)
Список pgsql-general
"Jim C. Nasby" <jim@nasby.net> writes:
> On Tue, May 20, 2003 at 12:58:41AM -0400, Tom Lane wrote:
>> How many rows would you expect this command to insert?
>>
>> You might be running into the fact that pending-trigger-call lists are
>> kept in memory, but it's hard to tell without knowing the number of
>> rows involved...

> 35M

Each pending deferred-trigger action takes about 40 bytes + palloc
overhead, probably 48 bytes altogether ... 48 * 35M comes to 1.68G, so
that's exactly where your problem is.  I'd suggest trying to commit the
changes in smaller batches ...

            regards, tom lane

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

Предыдущее
От: Darko Prenosil
Дата:
Сообщение: Re: caching query results
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: PostgreSQL Performance on OpenBSD