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 1iN3JN-0007h8-PL for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 23:11:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iN3JM-00066J-9U for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2019 23:11:32 +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 1iN3JL-00066C-W4 for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2019 23:11:32 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iN3JE-0003My-RM for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2019 23:11:31 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 1CEBB1039; Wed, 23 Oct 2019 01:11:24 +0200 (CEST) Date: Wed, 23 Oct 2019 01:11:24 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: jsonb_set() strictness considered harmful to data Message-ID: <20191022231124.GC12201@hjp.at> References: <20191019192723.luarxhq57qkzuncw@development> <1571560798575.47024@Optiver.com> <34a7ff88-0d86-0990-4eac-48159df8d7f2@2ndQuadrant.com> <5db07acf-bc75-edf8-60af-905c0adadb68@2ndQuadrant.com> <20191020233115.jjy6lqd4vsyrdbbo@raf.org> <20191021221605.qrdthyxzmjxwm3r3@raf.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="9Ek0hoCL9XbhcSqy" Content-Disposition: inline In-Reply-To: <20191021221605.qrdthyxzmjxwm3r3@raf.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --9Ek0hoCL9XbhcSqy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-10-22 09:16:05 +1100, raf wrote: > Steven Pousty wrote: > > In a perfect world I would agree with you. But often users do not read = ALL > > the documentation before they use the function in their code OR they are > > not sure that the condition applies to them (until it does). >=20 > I'm well aware of that, hence the statement that this > information needs to appear at the place in the > documentation where the user is first going to > encounter the function (i.e. in the table where its > examples are). I think this is a real weakness of the tabular format used for documenting functions: While it is quite compact which is nice if you just want to look up a function's name or parameters, it really discourages explanations longer than a single paragraph. Section 9.9 gets around this problem by limiting the in-table description to a few words and "see Section 9.9.x". So you basically have to read the text and not just the table. Maybe that would make sense for the json functions, too? hp --=20 _ | Peter J. Holzer | we build much bigger, better disasters now |_|_) | | because we have much more sophisticated | | | hjp@hjp.at | management tools. __/ | http://www.hjp.at/ | -- Ross Anderson --9Ek0hoCL9XbhcSqy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl2vjJsACgkQ8g5IURL+ KF0TAQ/9FM6SKoFVAgxJLSFSybVeZLNLGLxZniq940NcalM9efIggcLLqWxY2+Pq 16oDwi0mbInz8iNGgUuWseZ/PICYgcOnQQM6WONqrnMuY5uqfzppJyKPnJZOZfTt 21MsnbTSkAMBMSZbQq8QLWr4yYYIRQt/y6VD6dNgRTlOFDgxL/yRP1SEPzrifw3a AhNDbv/o+SyrqxutTD9rjIaOLz1NorAT/9rt+IT6jsA/WVcl+hRbKyRrsXr/Zp+v 8p3rxmMnNLFSzEUP5vnlvp0SaKSMsOchr6cl4OsyrT66VEhQRSFDj9EBhW4pDPQO suPGo/WdknqvMavpFNikBRJIJ88fZCL10OT2zWuU+Nk3R0dIuPUitkLj30fFpKp3 P6EPLPuiloievtatrwx3yvcB5t5qtjmyQ6Bjy35YFiwQqpeQHOupYrg8kFltJtyz f1xeIPXKSvhB9vB/nyYEMyZtXrhB52876nwT43AbP6g1glbAoZVtRfi/vOm9P3pv jqRBcarbrlJU998WLPUc+/Us8RXXAIWXuvnmduzorafs7JuxtNkyz+2x3uNbZ5P9 RAAP9hJZGfgcN7ArpqiWCCiYW5KXyuRs4bZcOOunDc2CrAanhjpS8CGeudGH0eEl gfLTfIaU1fLd3vCUfbK/vyXVygNighLr7G5Q/lGWnwLUw7zx5A0= =Z3op -----END PGP SIGNATURE----- --9Ek0hoCL9XbhcSqy--