Re: Cast jsonb to numeric, int, float, bool - Mailing list pgsql-hackers

From Teodor Sigaev
Subject Re: Cast jsonb to numeric, int, float, bool
Date
Msg-id bab83c35-2a25-927b-d28d-f836402c48ba@sigaev.ru
Whole thread Raw
In response to Re: Cast jsonb to numeric, int, float, bool  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Cast jsonb to numeric, int, float, bool
List pgsql-hackers
>> How about "cannot cast jsonb $json_type to $sql_type" where $json_type
>> is the type inside the jsonb (e.g. string, number, boolean, array,
>> object)?
> 
> Yes, that sounds pretty good.

Does anybody have an objections to patch?

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

Attachment

pgsql-hackers by date:

Previous
From: Chapman Flack
Date:
Subject: Re: MAP syntax for arrays
Next
From: Euler Taveira
Date:
Subject: Re: Exposing guc_malloc/strdup/realloc for plugins?