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 1iMZGq-0002fW-4B for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 15:06:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iMZGo-0001BN-PX for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 15:06:54 +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 1iMZGo-00019M-BV; Mon, 21 Oct 2019 15:06:54 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iMZGl-0003hd-BZ; Mon, 21 Oct 2019 15:06:53 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 25EA54F2; Mon, 21 Oct 2019 11:06:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 21 Oct 2019 11:06:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=R 5TztMs56ppejsmEmXOHlXV0GKA7/SzRSjWmmQtPQmI=; b=gBPAygm4uDUdNZJFr RDAYEBY/gIcfgsjn63sZ+ReeChdpx2uLTJzmDkWTYUCb/WeMXAKKyN7cNQlgOyLR UW5nDhi3YlAGYRDCN3ZwZGm3/ZsaxCJYQLKJ1ov6/WczGu8bcoMIbi8iFhNRPkqh I3FxbLwG+sy25NEOAS1Wk2dlHxNr2nSHwMh9us4MryIlwO6EtnWmh5vwxFFZTRXo 8ReJyRtIWjGVqMV+aIGOJiaWIwy7I9WhKgbkU8cCDv4mfHo/awjJ2adOb+APk142 6YeaecxyE1dCRwjC8ceGuajOJhYY+ULq4fftK2CXYkRu3S2WTUyb38VN1bmX2UEE oTvDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=R5TztMs56ppejsmEmXOHlXV0GKA7/SzRSjWmmQtPQ mI=; b=yKHmCQCmV4W/WG3wuaRTLpOZzBnFFyEU7BSoi9T+NZHpPxKe3kDhZynd/ RuPbncYQ4ZgMiqOHz4gxY65TpKXMS0bFMwsNmrSkcy/ZbOYi298JgomB56006tX8 FVm2c4vYCZdVr9HJPFVXXKaihvUEoDuxY0A2aDWNGt5zPe6aTJH7EW93NzqjjqvH oUWNxLVPK0336om1/kFQEr+STdCfAy3QnBrGT8TQEzS59zkKaRJMkHgnSDkI6kAy RSuhqZU49xvX/E3FhFHnMmtZqYkHABxrbc2e3bvgm+pg0aJtG3G+kVY4REoytqFI 2UFNZj0o2QTbPPG1gm/azZbQ5bV0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrkeehgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppedujeegrddvuddrleehrdeltdenucfrrghrrghmpehmrghilhhfrhhomhep rggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghruf hiiigvpedt X-ME-Proxy: Received: from [192.168.1.2] (174-21-95-90.tukw.qwest.net [174.21.95.90]) by mail.messagingengine.com (Postfix) with ESMTPA id 3DE42D60065; Mon, 21 Oct 2019 11:06:47 -0400 (EDT) Subject: Re: jsonb_set() strictness considered harmful to data To: Tomas Vondra , Andrew Dunstan Cc: "David G. Johnston" , Floris Van Nee , Ariadne Conill , Mark Felder , "pgsql-generallists.postgresql.org" , PostgreSQL Hackers References: <20191019192723.luarxhq57qkzuncw@development> <1571560798575.47024@Optiver.com> <34a7ff88-0d86-0990-4eac-48159df8d7f2@2ndQuadrant.com> <5db07acf-bc75-edf8-60af-905c0adadb68@2ndQuadrant.com> <20191020201839.olpuyuzixagcvvud@development> <5b8a26bf-6b46-71f3-a99e-3fb9a8095232@2ndQuadrant.com> <20191021060701.or6a6a7lg3asixom@development> From: Adrian Klaver Message-ID: Date: Mon, 21 Oct 2019 08:06:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20191021060701.or6a6a7lg3asixom@development> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/20/19 11:07 PM, Tomas Vondra wrote: > On Sun, Oct 20, 2019 at 06:51:05PM -0400, Andrew Dunstan wrote: > > True. And AFAIK catching exceptions is not really possible in some code, > e.g. in stored procedures (because we can't do subtransactions, so no > exception blocks). > Can you explain the above to me as I thought there are exception blocks in stored functions and now sub-transactions in stored procedures. -- Adrian Klaver adrian.klaver@aklaver.com