Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1isb2M-0004b2-55 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2020 23:28:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1isb2K-0007G4-S2 for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2020 23:28:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1isb2K-000791-EA for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2020 23:28:20 +0000 Received: from out.migadu.com ([91.121.223.63]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1isb2H-0004xT-5v for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2020 23:28:19 +0000 Received: (Migadu outbound); Fri, 17 Jan 2020 23:28:09 +0000 Authentication-Results: out.migadu.com; auth=pass (plain) Received: from wms1-eu-central.migadu.com (wms1-eu-central.migadu.com [172.104.244.218]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id B5F8F194-A0AF-466F-B98E-41B5353A075E.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Fri, 17 Jan 2020 23:28:09 +0000 MIME-Version: 1.0 Date: Fri, 17 Jan 2020 23:28:09 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.12.1 From: "Ariadne Conill" Message-ID: <186aabc08298ee04736a1c994f64f218@dereferenced.org> Subject: Re: jsonb_set() strictness considered harmful to data To: "Tomas Vondra" , "Andrew Dunstan" Cc: "Pavel Stehule" , "Michael Paquier" , "David G. Johnston" , "Floris Van Nee" , "Mark Felder" , "pgsql-generallists.postgresql.org" , "PostgreSQL Hackers" In-Reply-To: <20200117232110.r4od7rqjhdkk54og@development> References: <20200117232110.r4od7rqjhdkk54og@development> <544ecc1e-681e-69f1-5cde-8b8aaeb45d7f@2ndQuadrant.com> <375873e2-c957-3a8d-64f9-26c43c2b16e7@2ndQuadrant.com> <20191128023529.GI237562@paquier.xyz> <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com> DKIM-Signature: v=1;a=rsa-sha256;bh=Il3JGRlKVUAsMmVeFzGYNRor/7ILz7PA8e2eJ9NVpUQ=;c=relaxed/simple;d=dereferenced.org;h=from:subject:date:to;s=default;b=gyz9RMFp9VPuGvlupLdIumY7tvuXZ8iMFbcg/qJKbgihGJid7MqPEORUwEmRJgsZPn5wDXlHv92PMRoTq77k2yQwjtLlcXrU8gRiyTpyXkmF88O317d8avhmlYzzvKKmJSmMnzJM6aHrNRQDKbhhltDoRoW0qSjLkzQjjUaH4Ew= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello,=0A=0AJanuary 17, 2020 5:21 PM, "Tomas Vondra" wrote:=0A=0A> On Wed, Jan 08, 2020 at 05:24:05PM +1030, Andrew= Dunstan wrote:=0A> =0A>> On Wed, Jan 8, 2020 at 7:08 AM Pavel Stehule wrote:=0A>>> Hi=0A>>> =0A>>> po 6. 1. 2020 v 22:3= 4 odes=C3=ADlatel Andrew Dunstan napsal:= =0A>> =0A>> Updated version including docco and better error message.=0A>= > =0A>> cheers=0A>> =0A>> andrew=0A>>> I think so my objections are solve= d. I have small objection=0A>>> =0A>>> + errdetail("exception raised due = to \"null_value_treatment :=3D 'raise_exception'\""),=0A>>> + errhint("to= avoid, either change the null_value_treatment argument or ensure that an= SQL NULL is=0A>>> not used")));=0A>>> =0A>>> "null_value_treatment :=3D = 'raise_exception'\""=0A>>> =0A>>> it use proprietary PostgreSQL syntax fo= r named parameters. Better to use ANSI/SQL syntax=0A>>> =0A>>> "null_valu= e_treatment =3D> 'raise_exception'\""=0A>>> =0A>>> It is fixed in attache= d patch=0A>>> =0A>>> source compilation without warnings,=0A>>> compilati= on docs without warnings=0A>>> check-world passed without any problems=0A= >>> =0A>>> I'll mark this patch as ready for commiter=0A>>> =0A>>> Thank = you for your work=0A>> =0A>> Thanks for the review. I propose to commit t= his shortly.=0A> =0A> Now that this was committed, I've updated the patch= status accordingly.=0A=0AThank you very much for coming together and fin= ding a solution to this bug!=0A=0AAriadne