Re: Refactoring GUC unit conversions

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Refactoring GUC unit conversions
Дата
Msg-id 54DE3803.1010209@vmware.com
обсуждение исходный текст
Ответ на Re: Refactoring GUC unit conversions  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: Refactoring GUC unit conversions  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Список pgsql-hackers
On 02/13/2015 07:34 PM, Jim Nasby wrote:
> On 2/13/15 7:26 AM, Heikki Linnakangas wrote:
>> In the "redesign checkpoint_segments" patch, Robert suggested keeping
>> the settings' base unit as "number of segments", but allow conversions
>> from MB, GB etc. I started looking into that and found that adding a new
>> unit to guc.c is quite messy. The conversions are done with complicated
>> if-switch-case constructs.
>>
>> Attached is a patch to refactor that, making the conversions
>> table-driven. This doesn't change functionality, it just makes the code
>> nicer.
>
> Looks good, but shouldn't there be a check for a unit that's neither
> memory or time?

Can you elaborate? We currently only support units for memory and time 
settings.

- Heikki




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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Redesigning checkpoint_segments
Следующее
От: Fujii Masao
Дата:
Сообщение: Re: pg_basebackup may fail to send feedbacks.