Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1aD4-00011b-1q for pgsql-committers@arkaria.postgresql.org; Thu, 29 Mar 2018 16:15:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f1aD2-0004bY-0Y for pgsql-committers@arkaria.postgresql.org; Thu, 29 Mar 2018 16:15:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1aD1-0004bP-OY for pgsql-committers@lists.postgresql.org; Thu, 29 Mar 2018 16:15:27 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f1aCy-0001Uc-61 for pgsql-committers@lists.postgresql.org; Thu, 29 Mar 2018 16:15:26 +0000 Received: from xor.sai.msu.ru (unknown [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 6F9AEB191A0 for ; Thu, 29 Mar 2018 19:15:21 +0300 (MSK) Subject: Re: pgsql: Add casts from jsonb From: Teodor Sigaev To: pgsql-committers@lists.postgresql.org References: <425d73d0-7176-2287-3d40-9c2e8bb94541@sigaev.ru> Message-ID: Date: Thu, 29 Mar 2018 19:15:21 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: <425d73d0-7176-2287-3d40-9c2e8bb94541@sigaev.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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/