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

From Peter Eisentraut
Subject Re: Allow on/off as input texts for boolean.
Date
Msg-id 499D5C40.7010406@gmx.net
Whole thread Raw
In response to Allow on/off as input texts for boolean.  (ITAGAKI Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Responses Re: Allow on/off as input texts for boolean.
List pgsql-hackers
ITAGAKI Takahiro wrote:
> Here is a patch to allow 'on' and 'off' as input texts for boolean.
> Duplicated boolean parsers in parse_bool() and boolin() are merged
> into a new parse_bool_with_len().

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.)


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: PostgreSQL Translation - PL/pgSQL current
Next
From: Zdenek Kotala
Date:
Subject: Re: vacuumdb --freeze