Re: Refactoring GUC unit conversions - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Refactoring GUC unit conversions
Date
Msg-id CAHGQGwEMKNjKigWA8L5fXoOKz7psEo3q16teAb29MkYuW3nd3A@mail.gmail.com
Whole thread Raw
In response to Refactoring GUC unit conversions  (Heikki Linnakangas <hlinnakangas@vmware.com>)
List pgsql-hackers
On Fri, Feb 13, 2015 at 10:26 PM, Heikki Linnakangas
<hlinnakangas@vmware.com> 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.

Isn't it good idea to allow even wal_keep_segments to converse from MB, GB etc?

Regards,

-- 
Fujii Masao



pgsql-hackers by date:

Previous
From: Jeevan Chalke
Date:
Subject: Re: Review of GetUserId() Usage
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: How about to have relnamespace and relrole?