Re: [HACKERS] Patch to log usage of temporary files

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [HACKERS] Patch to log usage of temporary files
Дата
Msg-id 3813.24.211.165.134.1167872727.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Patch to log usage of temporary files  (Bill Moran <wmoran@collaborativefusion.com>)
Ответы Re: [HACKERS] Patch to log usage of temporary files  (Bill Moran <wmoran@collaborativefusion.com>)
Список pgsql-patches
Bill Moran wrote:
> Andrew Dunstan <andrew@dunslane.net> wrote:
>>
>> Bill Moran wrote:
>> > +         if (trace_temp_files != -1)
>> >
>>
>> Might be more robust to say
>>
>>     if (trace_temp_files >= 0)
>
> Because it would allow for the easy addition of more negative numbers
> with magic value?
>


because ISTM any negative number here should mean no action is to be
taken. Otherwise how else is it different from 0?

cheers

andrew


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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: [HACKERS] Patch to log usage of temporary files
Следующее
От: Euler Taveira de Oliveira
Дата:
Сообщение: Re: xlog directory at initdb time