Re: Allow on/off as input texts for boolean. - Mailing list pgsql-hackers

From ITAGAKI Takahiro
Subject Re: Allow on/off as input texts for boolean.
Date
Msg-id 20090220174642.9FD7.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: Allow on/off as input texts for boolean.  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Allow on/off as input texts for boolean.  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> wrote:

> ITAGAKI Takahiro wrote:
> > Here is a patch to allow 'on' and 'off' as input texts for boolean.
>
> Regarding your FIXME comment, I think parse_bool* should be in bool.c
> and declared in builtins.h, which guc.c already includes.
> (Conceptually, the valid format of a bool should be drived by the
> boolean type, not the GUC system, I think.)

Here is an updated patch to move parse_bool* into bool.c.
I also added tests of on/off values to the regression test.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center


Attachment

pgsql-hackers by date:

Previous
From: "Jacky Leng"
Date:
Subject: Re: Doubts about EvalPlanQual
Next
From: Heikki Linnakangas
Date:
Subject: Re: Doubts about EvalPlanQual