Re: Direct converting numeric types to bool - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Direct converting numeric types to bool
Date
Msg-id 2655.1519830692@sss.pgh.pa.us
Whole thread Raw
In response to Direct converting numeric types to bool  (n.zhuchkov@postgrespro.ru)
List pgsql-hackers
n.zhuchkov@postgrespro.ru writes:
> Attached patch allow direct convertion of numeric types to bool like 
> integer::bool.
> Supported types:
>   - smallint;
>   - bigint;
>   - real;
>   - double precision;
>   - decimal(numeric).
> This functionality is helped with migration from Oracle.

I think you forgot to attach the patch, but in any case: is this
really a behavior we want?  "Oracle has it" is not a good argument
in my view, nor do I recall people complaining that they need such
a behavior to migrate.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] [POC] Faster processing at Gather node
Next
From: Robert Haas
Date:
Subject: Re: Incorrect comments in partition.c