Re: shared-memory based stats collector - v70

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: shared-memory based stats collector - v70
Дата
Msg-id 20220720160526.3pyyq3ileaxzdkl2@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: shared-memory based stats collector - v70  (Greg Stark <stark@mit.edu>)
Список pgsql-hackers
Hi,

On 2022-07-20 11:35:13 -0400, Greg Stark wrote:
> Is it true that the shared memory allocation contains the hash table
> entry and body of every object in every database?

Yes. However, note that that was already the case with the old stats
collector - it also kept everything in memory. In addition every read
access to stats loaded a copy of the stats (well of the global stats and
the relevant per-database stats).

It might be worth doing something fancier at some point - the shared
memory stats was already a huge effort, cramming yet another change in
there would pretty much have guaranteed that it'd fail.

Greetings,

Andres Freund



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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: pgsql: Default to hidden visibility for extension libraries where possi
Следующее
От: Tom Lane
Дата:
Сообщение: Re: shared-memory based stats collector - v70