Re: proposal: Allocate work_mem From Pool

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: proposal: Allocate work_mem From Pool
Дата
Msg-id CAFBsxsH9KF8_9H5aczTPh5hFt4Leat_Xcnw=cqaiazwwzV_qwQ@mail.gmail.com
обсуждение исходный текст
Ответ на RE: proposal: Allocate work_mem From Pool  ("Joseph D Wagner" <joe@josephdwagner.info>)
Ответы Re: proposal: Allocate work_mem From Pool  (Joseph D Wagner <joe@josephdwagner.info>)
Список pgsql-hackers

On Tue, Jul 12, 2022 at 5:55 PM Joseph D Wagner <joe@josephdwagner.info> wrote:
> Before I try to answer that, I need to know how the scheduler works.

As I understand the term used, there is no scheduler inside Postgres for user connections -- they're handled by the OS kernel. That's probably why it'd be a difficult project to be smart about memory -- step one might be to invent a scheduler. (The autovacuum launcher and checkpointer, etc have their own logic about when to do things, but while running they too are just OS processes scheduled by the kernel.)

--
John Naylor
EDB: http://www.enterprisedb.com

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication
Следующее
От: "Drouvot, Bertrand"
Дата:
Сообщение: Re: Patch proposal: New hooks in the connection path