Re: Performance monitor signal handler

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance monitor signal handler
Дата
Msg-id 5086.984856311@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Performance monitor signal handler  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Performance monitor signal handler  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Even better, have an SQL table updated with the per-table stats
> periodically.
>> 
>> That will be horribly expensive, if it's a real table.

> But per-table stats aren't something that people will look at often,
> right?  They can sit in the collector's memory for quite a while.  See
> people wanting to look at per-backend stuff frequently, and that is why
> I thought share memory should be good, and a global area for aggregate
> stats for all backends.

>> I think you missed the point that somebody made a little while ago
>> about waiting for functions that can return tuple sets.  Once we have
>> that, the stats tables can be *virtual* tables, ie tables that are
>> computed on-demand by some function.  That will be a lot less overhead
>> than physically updating an actual table.

> Yes, but do we want to keep these stats between postmaster restarts? 
> And what about writing them to tables when our storage of table stats
> gets too big?

All those points seem to me to be arguments in *favor* of a virtual-
table approach, not arguments against it.

Or are you confusing the method of collecting stats with the method
of making the collected stats available for use?
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Performance monitor signal handler
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Performance monitor signal handler