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 1iMMLJ-0002Vh-H3 for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 01:18: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 1iMMLG-0000NA-Dy for pgsql-general@arkaria.postgresql.org; Mon, 21 Oct 2019 01:18:38 +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 1iMMLG-0000N3-2N for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 01:18:38 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iMML9-0007eJ-4g for pgsql-general@lists.postgresql.org; Mon, 21 Oct 2019 01:18:37 +0000 Received: by mail-pf1-x441.google.com with SMTP id a2so7316923pfo.10 for ; Sun, 20 Oct 2019 18:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=0JDW/5CZGJZ5+2x3doyWmOFfFSNPylHZ47H1F8ucww0=; b=WUaPCah2DKG3kkBAB+vkFBssmkq+M/Diz++bVESmBMzxT+R1ur7Iu51lA4thUkx8jM ZViVmhWr0+DnIYt09uqs9rlvvgH9ghfcJFftpTNEbPqyQo61LhdJUgDgW8PyxD34BA5M VYRzTIrYVLZBnLYEGr1sH0WMDO0kwy9Gz0+LjhzQp5IFV4OyiSnZbg9wnUSz/Tcfg7j3 Pu0t8iRB9Au0fgL9Xn2EFm87XGmXH4yp+BLTN0LExMQnFF7ijzvCraA8iiXLWbcArvz6 2vs1MG41Pqvg2xb9VWryIO+MyfQEJ/KHMXu1/f6TvcEa2MXjRD/qCXLhobrG4KfZFiYE eo8A== 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:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=0JDW/5CZGJZ5+2x3doyWmOFfFSNPylHZ47H1F8ucww0=; b=n2L6udQT38Yp1Q99Dtgbm+3Z3qcn45AWVPwYD/MAcnKWI39aOPJqn5S1WQ6cZvBXiL G2W5ndz6gBJoE6DV/T/zVlVKncmYiHUpK0nfaV8XwvzoDjxYHIePhF8GlY0ITDx1++6K DCvC46Cpbwtx0srNJXkwWMn5xK16YrAnGzPz4x2LQaoOkTiZFOyOf2Kak0wmdtNauj6L ZFhTiV/GERFat+CSrXdi1y4hQTJpk/M7BVpa8l/lMcpICFTtClIif6yv4Q2rZ2bIARMm 3pF6oYm7X0p34PMJzivbm+cYViguebnbqUzuZYLSpjnwbv0S0xymo0xaaudzHV4tXnY2 1eOg== X-Gm-Message-State: APjAAAVNitMmNwVVZDdopEyRBXIZgg6ThGgPdFdsO1nA8OnUYDFNuf7l ifsrXy7W7YuAd5tWQorSRFg= X-Google-Smtp-Source: APXvYqyAqPjClxGhjvJjg28Dv5YtLXdUH8UPZ7IdU6LKMiIsVfVPJGfqHVivZQckHpON4IO1CYjhZQ== X-Received: by 2002:a63:e750:: with SMTP id j16mr23249174pgk.30.1571620708306; Sun, 20 Oct 2019 18:18:28 -0700 (PDT) Received: from 192-168-1-101.tpgi.com.au ([210.185.72.229]) by smtp.gmail.com with ESMTPSA id h68sm15206701pfb.149.2019.10.20.18.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2019 18:18:27 -0700 (PDT) Message-ID: Subject: Re: jsonb_set() strictness considered harmful to data From: rob stone To: Andrew Dunstan , Tomas Vondra Cc: "pgsql-generallists.postgresql.org" Date: Mon, 21 Oct 2019 12:18:23 +1100 In-Reply-To: <5b8a26bf-6b46-71f3-a99e-3fb9a8095232@2ndQuadrant.com> References: <7dc242bd-b78f-2e0d-0c38-7b4b299f11bf@2ndQuadrant.com> <20191019161851.v7dwloiiav5yrpwu@development> <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> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hello, On Sun, 2019-10-20 at 18:51 -0400, Andrew Dunstan wrote: > On 10/20/19 4:18 PM, Tomas Vondra wrote: > > > > https://www.postgresql.org/docs/12/functions-json.html > > > > but that says nothing about how jsonb_set works with NULL values :- > > ( > > > We should certainly fix that. I accept some responsibility for the > omission. > > > FWIW, if you are able to update the documentation, the current JSON RFC is 8259. https://tools.ietf.org/html/rfc8259 Cheers, Rob