From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add casts from jsonb
Date: Thu, 29 Mar 2018 19:15:21 +0300
Message-ID: <d288c586-da90-6036-0d3f-53bbebc385f2@sigaev.ru> (raw)
In-Reply-To: <425d73d0-7176-2287-3d40-9c2e8bb94541@sigaev.ru>
References: <E1f1Xi4-0007b2-Qz@gemulon.postgresql.org>
<425d73d0-7176-2287-3d40-9c2e8bb94541@sigaev.ru>
Hm, it was a random failure?
Teodor Sigaev wrote:
> Seems, I broke Windows again, it doesn't like this patch, see
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=whelk&dt=2018-03-29%2013%3A41%3A13
>
>
> But I don't understand how it could be...
>
> Teodor Sigaev wrote:
>> Add casts from jsonb
>>
>> Add explicit cast from scalar jsonb to all numeric and bool types. It would be
>> better to have cast from scalar jsonb to text too but there is already a cast
>> from jsonb to text as just text representation of json. There is no way to have
>> two different casts for the same type's pair.
>>
>> Bump catalog version
>>
>> Author: Anastasia Lubennikova with editorization by Nikita Glukhov and me
>> Review by: Aleksander Alekseev, Nikita Glukhov, Darafei Praliaskouski
>> Discussion:
>> https://www.postgresql.org/message-id/flat/0154d35a-24ae-f063-5273-9ffcdf1c7f2e@postgrespro.ru
>>
>>
>> Branch
>> ------
>> master
>>
>> Details
>> -------
>> https://git.postgresql.org/pg/commitdiff/c0cbe00fee6d0a5e0ec72c6d68a035e674edc4cc
>>
>> Modified Files
>> --------------
>> src/backend/utils/adt/jsonb.c | 175 ++++++++++++++++++++++++++++++++++++
>> src/include/catalog/catversion.h | 2 +-
>> src/include/catalog/pg_cast.h | 9 ++
>> src/include/catalog/pg_proc.h | 16 ++++
>> src/test/regress/expected/jsonb.out | 105 ++++++++++++++++++++++
>> src/test/regress/sql/jsonb.sql | 22 +++++
>> 6 files changed, 328 insertions(+), 1 deletion(-)
>>
>
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Add casts from jsonb
In-Reply-To: <d288c586-da90-6036-0d3f-53bbebc385f2@sigaev.ru>
References: <E1f1Xi4-0007b2-Qz@gemulon.postgresql.org> <425d73d0-7176-2287-3d40-9c2e8bb94541@sigaev.ru> <d288c586-da90-6036-0d3f-53bbebc385f2@sigaev.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox