Re: Allow on/off as input texts for boolean.

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Allow on/off as input texts for boolean.
Date: 2009-02-19 13:18:56
Message-ID: 499D5C40.7010406@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2009-02-19 13:20:02 Re: vacuumdb --freeze
Previous Message Peter Eisentraut 2009-02-19 13:09:44 Re: PostgreSQL Translation - PL/pgSQL current