Обсуждение: Parameter - shared_memory_size

Поиск
Список
Период
Сортировка

Parameter - shared_memory_size

От
Jayadevan M
Дата:
Hello team,

I am trying to understand the parameter shared_memory_size. It is a static parameter that reports the size of the shared memory area. Does that imply that the value may change depending on the memory used by the server?

Regards,
Jayadevan

Re: Parameter - shared_memory_size

От
Laurenz Albe
Дата:
On Fri, 2025-01-10 at 12:14 +0530, Jayadevan M wrote:
> I am trying to understand the parameter shared_memory_size. It is a static parameter
> that reports the size of the shared memory area. Does that imply that the value may
> change depending on the memory used by the server?

No, that value will never change.
It is set once after the start of the server, after the server has allocated
shared buffers and other shared memory segments, and after the modules in
"shared_preload_libraries" have had a chance to allocate shared memory too.

Yours,
Laurenz Albe