Re: log_min_duration_statement feature

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: log_min_duration_statement feature
Дата
Msg-id 3364.1051026751@sss.pgh.pa.us
обсуждение исходный текст
Ответ на log_min_duration_statement feature  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Список pgsql-patches
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> The only thing that I'm not 100% on is the ong >= int * 1000 comparison I
> do - will that overflow if the user has supplied max int?

Yes.  Consider declaring the "max value" in the GUC variable's info block
as INT_MAX/1000 instead of INT_MAX.

(We should go through all of the GUC variables with an eye to places
where the max value is unrealistically high, but for the moment I'll
settle for not introducing any new sillinesses ...)

            regards, tom lane


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

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: log_min_duration_statement feature
Следующее
От: Michael Graff
Дата:
Сообщение: Re: IPv6 address parsing for inet/cidr types (take II)