Re: [GENERAL] Stats Collector

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Stats Collector
Дата
Msg-id 22463.1028067874@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [GENERAL] Stats Collector  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [GENERAL] Stats Collector  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> I don't like SET for it --- SET is for setting state that will persist
>> over some period of time, not for taking one-shot actions.  We could
>> perhaps use a function that checks that it's been called by the
>> superuser.

> Should we have RESET clear the counter, perhaps RESET STATCOLLECTOR?
> I don't think we have other RESET variables that can't be SET, but I
> don't see a problem with it.

RESET is just a variant form of SET.  It's not for one-shot actions
either (and especially not for one-shot actions against state that's
not accessible to SHOW or SET...)

I still like the function-call approach better.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WAL file location
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] Stats Collector