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 1ia9ee-0005un-UF for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 02:35:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ia9ed-0005i2-Hq for pgsql-general@arkaria.postgresql.org; Thu, 28 Nov 2019 02:35:39 +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 1ia9ed-0005he-44; Thu, 28 Nov 2019 02:35:39 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ia9ea-0003ct-Pd; Thu, 28 Nov 2019 02:35:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 1B6C7A28; Wed, 27 Nov 2019 21:35:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 27 Nov 2019 21:35:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=0pSwCd5egF5fwNCSpbLVF6fMHc+ HlEmy92CrSrRE+4Y=; b=FiEUp1e8sJvR6a/OsV9o9QQq/8JFYPIW3aS3k0rahNi JlOkc0EhecvkDzgfy3bzH+TiRoNd7UQqnjlCRRuVdI9HzHD19V2s6ohsG9RV0+En vXS5n8e7BfwxZxtnT4cx+zx4H5EpYFzMKPG+TYEt/tdBV76ac/U78kMxTBME9d6c juN/ULX9QvJpet6/zYyl5D8w2bbfN1yibQy8jVAFjHvtf0nLzBiziTl7laZDRcBz AKYsPe/6mj047yhLuS+KXCpyUPbGG4KZiavjkvFJcevFigz6q7vLuXas0SSYHugq GtuQwUT3fPz0pdmbacG7FiH+bdUznUoOf/jMGbGQkXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=0pSwCd 5egF5fwNCSpbLVF6fMHc+HlEmy92CrSrRE+4Y=; b=RjpefMABiaq08cy1qAV8Aa svZAXMHxtaxANY9DKKWOEWpDvlFJJrAiUGsMMbWMjx+3ORv0t3HT21rMoAYjunq3 EmZ7st21OPgBeYPM2MAUkIXovxCiDu5u3v9oMUYDAkxGigq9HM5+7+h7b/vfElzz REb67fAYyu/MxbtlbwXLxGPiKPBcnURoGCyXTnzZgC2ndygLJ5gXtEFSqGJwNM2i bihxD6xzib2toxIL8b1cRBX9gi9MZwZLV9iJo1kNi+7tl7SDiTfE49kdCSnc0K5d e/Hc0xuqLGQD1wVUbauFYd1OJBNGhuGxiz4s3bKy1X3Krth5s3RTAUPj4em1dp/g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeiiedggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepudduuddruddtvddrudektddrudekheenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id 1841530600EA; Wed, 27 Nov 2019 21:35:31 -0500 (EST) Date: Thu, 28 Nov 2019 11:35:29 +0900 From: Michael Paquier To: Pavel Stehule Cc: Andrew Dunstan , Tomas Vondra , "David G. Johnston" , Floris Van Nee , Ariadne Conill , Mark Felder , "pgsql-generallists.postgresql.org" , PostgreSQL Hackers Subject: Re: jsonb_set() strictness considered harmful to data Message-ID: <20191128023529.GI237562@paquier.xyz> References: <5db07acf-bc75-edf8-60af-905c0adadb68@2ndQuadrant.com> <20191020201839.olpuyuzixagcvvud@development> <5b8a26bf-6b46-71f3-a99e-3fb9a8095232@2ndQuadrant.com> <20191021060701.or6a6a7lg3asixom@development> <544ecc1e-681e-69f1-5cde-8b8aaeb45d7f@2ndQuadrant.com> <375873e2-c957-3a8d-64f9-26c43c2b16e7@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="5uO961YFyoDlzFnP" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5uO961YFyoDlzFnP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 15, 2019 at 09:45:59PM +0100, Pavel Stehule wrote: > Maybe ERRCODE_NULL_VALUE_NOT_ALLOWED, and "NULL is not allowed", > errdetail - a exception due setting "null_value_treatment" =3D> > raise_exception > and maybe some errhint - "Maybe you would to use Jsonb NULL - "null"::jso= nb" >=20 > I don't know, but in this case, the exception should be verbose. This is > "rich" function with lot of functionality @Andrew: This patch is waiting on input from you for a couple of days now. -- Michael --5uO961YFyoDlzFnP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl3fMnEACgkQnvQgOdby QH0pUw/+NMAyUBku9XZo9Lp+cUZameohWdZfXAwPorPnG5JRLaDsl8H5YlytUXOn jscE1WwOiADhVBEU+KQ0Ii4Zv812SEVOFXAYbq/Dy0iPiJXGCnfgMb2kJuTmNlcJ gBqcHoqtyHXI0JzIRhL2sGnMzFAKwND7V5iC8bMuX3sC2W0Tm0N/UZe0WEppG5Ar a4o1KX6bc/okT+iz/eJa+YvxIMYsMY+4usGNK1mkFHhWgM+N+BBR972+HgjxcC6f KCmWgfg2J8x7EA2FNeFnFK+EYqJsjKjmUDjIrchMoVpE8aGAakMcMX4t1ZxxUcEe UuLd7SHqg0UZ+NZBkwFgUsMjZdbCn9Fhl+QJ3N5TrkzvKHm6Vx2OOy5LHpbW1i5l TPIN6YqW3ZO+1CHsOZuPFKBvBpaMdrF7bXAHIzVuZJ+gpLxV3Esz1zOyFT4qniZV l+SU5JTi9tFqje4JXzQwPuAeKsQV4DFudx4VH3G+Ba9KQDY7f7GMSYOWjV5NsfN0 P7+BKhQpcnI2ddl0aY0EFA9UZz2WGoLeCONNBtIad128RE176qngxdZDmkOW+qxN 14VeXRN8IwWnkXbpOUMWAhEfYEK1lqHdSqxo9nfDug9+XE42EwqkEcCPG/WCdbbX a3pH448FklBA8xrgZ5mcP/ilchfvJ3fRQOkr0Ih+PtuxrmTYrn8= =maG2 -----END PGP SIGNATURE----- --5uO961YFyoDlzFnP--