Re: Reducing memory usage of insert into select operations?

Поиск
Список
Период
Сортировка
От Francisco Reyes
Тема Re: Reducing memory usage of insert into select operations?
Дата
Msg-id d0f1c83146388a4b52201c5ac5b439b0@stringsutils.com
обсуждение исходный текст
Ответ на Re: Reducing memory usage of insert into select operations?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Reducing memory usage of insert into select operations?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 3:55 pm 07/18/08 Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >  AfterTriggerEvents: 10553909248 total in 1268 blocks; 20432 free (6
> >  chunks); 10553888816 used
>
> Well, that's definitely your problem ...

So I need to remove the foreign constraints?

> >            HashBatchContext: 415227952 total in 59 blocks; 6589744
> >  free (5 chunks); 408638208 used
>
> although these numbers seem way outta line too.  What did you say you
> had work_mem set to?

Initially on the first crash it was 256MB. I believe at the time of the
crash I got the dump for it was down to 64MB or 8MB. I kept trying lower
values. Also tried reducing shared_buffers as someone suggested.

I will bump my shared_buffers back to 3GB and work_mem back to 64MB.


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Reducing memory usage of insert into select operations?
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Writing a user defined function