Re: Make MemoryContextMemAllocated() more precise
| От | Robert Haas |
|---|---|
| Тема | Re: Make MemoryContextMemAllocated() more precise |
| Дата | |
| Msg-id | CA+TgmoYt-dPg+kZM7uFeuYGW0T+bysJdeaPtxCZ1y1w2SBsptg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Make MemoryContextMemAllocated() more precise (Tomas Vondra <tomas.vondra@2ndquadrant.com>) |
| Ответы |
Re: Make MemoryContextMemAllocated() more precise
|
| Список | pgsql-hackers |
On Thu, Mar 19, 2020 at 2:11 PM Tomas Vondra <tomas.vondra@2ndquadrant.com> wrote: > My understanding is that this is really just an accounting issue, where > allocating a block would get us over the limit, which I suppose might be > an issue with low work_mem values. Well, the issue is, if I understand correctly, that this means that MemoryContextStats() might now report a smaller amount of memory than what we actually allocated from the operating system. That seems like it might lead someone trying to figure out where a backend is leaking memory to erroneous conclusions. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: