pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Floris Van Nee <florisvannee@optiver.com>
Cc: Ariadne Conill <ariadne@dereferenced.org>
Cc: Mark Felder <feld@freebsd.org>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: jsonb_set() strictness considered harmful to data
Date: Wed, 27 Nov 2019 22:45:54 -0500
Message-ID: <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com> (raw)
In-Reply-To: <20191128023529.GI237562@paquier.xyz>
References: <CAKFQuwbkKPYhT0S6481L7temmiN+VNrMkExsUjp6FjJnCynd5A@mail.gmail.com>
	<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>
	<CAFj8pRCKv50=DYzhPAbEiqrt3cnXRg9HccFdtxmghJUMyQPs0g@mail.gmail.com>
	<a0dab101-7645-b011-888f-7323202f3b6f@2ndQuadrant.com>
	<CAFj8pRBrX6jQb-gUR=d8frWAEBuj5i0efxJ2509hK13aQbzNLg@mail.gmail.com>
	<20191128023529.GI237562@paquier.xyz>


On 11/27/19 9:35 PM, Michael Paquier wrote:
> 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" =>
>> raise_exception
>> and maybe some errhint - "Maybe you would to use Jsonb NULL - "null"::jsonb"
>>
>> 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.
>


Will get to this on Friday - tomorrow is Thanksgiving so I'm unlikely to
get to it then.


cheers


andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services






view thread (83+ messages)  latest in thread

Message-ID: <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com>
Permalink:  ../25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com/
Also on:    postgresql.org/message-id/25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andrew.dunstan@2ndquadrant.com, michael@paquier.xyz, pavel.stehule@gmail.com, tomas.vondra@2ndquadrant.com, david.g.johnston@gmail.com, florisvannee@optiver.com, ariadne@dereferenced.org, feld@freebsd.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: jsonb_set() strictness considered harmful to data
  In-Reply-To: <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com>
  References: <CAKFQuwbkKPYhT0S6481L7temmiN+VNrMkExsUjp6FjJnCynd5A@mail.gmail.com> <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> <CAFj8pRCKv50=DYzhPAbEiqrt3cnXRg9HccFdtxmghJUMyQPs0g@mail.gmail.com> <a0dab101-7645-b011-888f-7323202f3b6f@2ndQuadrant.com> <CAFj8pRBrX6jQb-gUR=d8frWAEBuj5i0efxJ2509hK13aQbzNLg@mail.gmail.com> <20191128023529.GI237562@paquier.xyz> <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox