Re: large numbers of inserts out of memory strategy

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: large numbers of inserts out of memory strategy
Дата
Msg-id 29817.1511967306@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: large numbers of inserts out of memory strategy  (Ted Toth <txtoth@gmail.com>)
Список pgsql-general
Ted Toth <txtoth@gmail.com> writes:
> On Tue, Nov 28, 2017 at 9:59 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> So whatever's going on here, there's more to it than a giant client-issued
>> INSERT (or COPY), or for that matter a large number of small ones.  What
>> would seem to be required is a many-megabyte-sized plpgsql function body
>> or DO block.

> Yes I did generate 1 large DO block:

Apparently by "large" you mean "hundreds of megabytes".  Don't do that,
at least not on a machine that hasn't got hundreds of megabytes to spare.
The entire thing has to be sucked into menory and parsed before anything
will happen.
        regards, tom lane


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

Предыдущее
От: Ted Toth
Дата:
Сообщение: Re: large numbers of inserts out of memory strategy
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: seq vs index scan in join query