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 1iNSK6-0007ox-Db for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 01:53:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iNSJ4-000529-9d for pgsql-general@arkaria.postgresql.org; Thu, 24 Oct 2019 01:52:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNSJ3-0004q2-Rj for pgsql-general@lists.postgresql.org; Thu, 24 Oct 2019 01:52:53 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iNSIu-0001ym-7j for pgsql-general@lists.postgresql.org; Thu, 24 Oct 2019 01:52:50 +0000 Received: by mail-pg1-x541.google.com with SMTP id r1so13206438pgj.12 for ; Wed, 23 Oct 2019 18:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=py++8ImJykOtuJPN92tCc6QrPbp2Lnr9EGpeBPHUn3c=; b=PXSXMbB4EOflHvRABYrGrSzyu5p0mH713OaNvr47vun5YW46d5xBELYH7AOGYXa4Vs 3PGTYLofg4ionPeL23lM/wTMICPTRfN6PHxxhzySUa8aYTiS1Dl0DCSqAWF3c2ZVzhoi mlz/2AedyFoHdQuAWKpIS65LGXVsF1TSiAAIztGRvOuKIlEo61eJmom5zePue6VH3PGs hFi1tlSNna/prtZepppv2PuXHW0s0O69vlzLS+oL3kjUfJh2NOBMjp9AfXvv31EgHqRa NOzUfUFJfR0jgMtzKPtfEgf0RYmFTeVxSsJDzd4bcqoHIA1u3xmPpVYVE5vGigdldLX4 kyiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=py++8ImJykOtuJPN92tCc6QrPbp2Lnr9EGpeBPHUn3c=; b=Sty/vWYZAmRg3AhN/xJ3Gwd3ucotlDrd7ZH2UJQmkJMGO0hWBWvBRGyDa9v94ED/QF j3DzgdDH0HB0Vpw7D5L7ELlvp5rPl2C85Bp/1llJjIfVYuioIOypJvEhNdes1FsEFRHM Q2d7glAnxMbQ2+SvBlu4Y/XayS23Knh/yEuNb5mzR+Poacd9SI61hAnxIQKaNtIQTIZ+ etxJCJ+fmBSbSUfmHXQHs1ivuu0Cl8chQ3hGKxUkIj23kmiuL6ij0MLVxeml1V1GzUEt UDSkrLTrBXIxTDzHO7Tz3L3c5sbWI8gzax8WXEmUyub5nz2VwYAhTu2r504e1fDRmTVu 5zwA== X-Gm-Message-State: APjAAAU7IGVKxfjd5PQf7cvqWo5pdL1+iLTPOarR90A04fBhYkmiJDCs MMX7uxdNf42RRmzdH34TUCQ= X-Google-Smtp-Source: APXvYqyg4HfRJeTTV/vTNisGHn4yugThmKZYQHabtSicn7skKU/IILZKMl77TMoszxOvxSSXfLOTtA== X-Received: by 2002:a62:6842:: with SMTP id d63mr14210641pfc.16.1571881961270; Wed, 23 Oct 2019 18:52:41 -0700 (PDT) Received: from 192-168-1-101.tpgi.com.au (15.171.220.203.dial.dynamic.acc01-aitk-gis.comindico.com.au. [203.220.171.15]) by smtp.gmail.com with ESMTPSA id s14sm24340405pfe.52.2019.10.23.18.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 18:52:40 -0700 (PDT) Message-ID: Subject: Re: jsonb_set() strictness considered harmful to data From: rob stone To: "Peter J. Holzer" , pgsql-general@lists.postgresql.org Date: Thu, 24 Oct 2019 12:52:36 +1100 In-Reply-To: <20191023183306.GA26674@hjp.at> References: <20191019192723.luarxhq57qkzuncw@development> <1571560798575.47024@Optiver.com> <34a7ff88-0d86-0990-4eac-48159df8d7f2@2ndQuadrant.com> <5db07acf-bc75-edf8-60af-905c0adadb68@2ndQuadrant.com> <20191022225513.GA12201@hjp.at> <20191023183306.GA26674@hjp.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2+b1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, On Wed, 2019-10-23 at 20:33 +0200, Peter J. Holzer wrote: > > I grant that SQL NULL takes a bit to get used to. However, it is a > core > part of the SQL language and everyone who uses SQL must understand it > (I > don't remember when I first stumbled across "select * from t where c > = > NULL" returning 0 rows, but it was probably within the first few days > of > using a database). And personally I find it much easier to deal with > concept which are applied consistently across the whole language than > those which sometimes apply and sometimes don't seemingly at random, > just because a developer thought it would be convenient for the > specific > use-case they had in mind. > > hp >