Re: [PATCH] Better Performance for PostgreSQL with large INSERTs

Поиск
Список
Период
Сортировка
От Philipp Marek
Тема Re: [PATCH] Better Performance for PostgreSQL with large INSERTs
Дата
Msg-id b3452323499e5f5e87a541a14fcb1e0e@marek.priv.at
обсуждение исходный текст
Ответ на Re: [PATCH] Better Performance for PostgreSQL with large INSERTs  (Kirill Reshke <reshkekirill@gmail.com>)
Ответы Re: [PATCH] Better Performance for PostgreSQL with large INSERTs
Список pgsql-hackers
Hi Kirill,

> Changing this constant will result in an overwhelming increase of
> memory consumption for instances that work with a large number of
> connections (
> max_connections ~ 1e4) for zero benefit.

No, it's not that bad.

1) With this being allocated in the bss segment,
    the RAM will only be actually be provided on _first use_ --
    so processes that only ever work with small queries will see no 
difference.

2) With temp_buffers' default of 8MB, work_mem using 4MB, etc.,
    using an additional 256kB RAM to 2MB _when needed_ is a good deal
    for about 7% performance improvements.



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