Re: pg_stat_reset round 2

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: pg_stat_reset round 2
Дата
Msg-id 877kj5loyi.fsf@klamath.dyndns.org
обсуждение исходный текст
Ответ на pg_stat_reset round 2  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: pg_stat_reset round 2  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Список pgsql-patches
"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> This is a reworked patch.  It makes pg_stat_reset() a documented builtin
> function.  It requires superuser privileges to execute.  The committer
> should check my pg_proc.h entry to make sure I've set isstrict, volatility,
> etc. correctly...

It should be marked volatile (rather than stable), as it has
side-effects.

Wouldn't PG_RETURN_VOID() be more appropriate than returning true?

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

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

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: pg_stat_reset round 2
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: pg_stat_reset round 2