Re: Direct converting numeric types to bool

From: n(dot)zhuchkov(at)postgrespro(dot)ru
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Direct converting numeric types to bool
Date: 2018-02-28 15:06:11
Message-ID: 0ef92165d45f176f66d9f9ceac86c042@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

n(dot)zhuchkov(at)postgrespro(dot)ru писал 2018-02-28 18:04:
> 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.

Attachment Content-Type Size
cast_bool_numeric_types_master.patch text/x-diff 20.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2018-02-28 15:06:27 Re: [HACKERS] [POC] Faster processing at Gather node
Previous Message n.zhuchkov 2018-02-28 15:04:07 Direct converting numeric types to bool