From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
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: Sat, 18 Jan 2020 00:21:10 +0100
Message-ID: <20200117232110.r4od7rqjhdkk54og@development> (raw)
In-Reply-To: <CAA8=A78Wwr-kqn8gBZRArM9Nj2j-+yu1UOsTfDrah2O=ZkunoQ@mail.gmail.com>
References: <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>
<CAA8=A79Z_zkWbRGGsPn6Sho53H=M=-ajX09Gy++coE_kGmMuEw@mail.gmail.com>
<CAFj8pRDPGAedFbmM+NOaJqgWNPBb0BikOmDztqLKxU8Y1amjMQ@mail.gmail.com>
<CAA8=A78Wwr-kqn8gBZRArM9Nj2j-+yu1UOsTfDrah2O=ZkunoQ@mail.gmail.com>
On Wed, Jan 08, 2020 at 05:24:05PM +1030, Andrew Dunstan wrote:
>On Wed, Jan 8, 2020 at 7:08 AM Pavel Stehule <pavel.stehule@gmail.com> wrote:
>>
>> Hi
>>
>> po 6. 1. 2020 v 22:34 odesÃlatel Andrew Dunstan <andrew.dunstan@2ndquadrant.com> napsal:
>>>
>>>
>>> Updated version including docco and better error message.
>>>
>>> cheers
>>>
>>> andrew
>>
>>
>> I think so my objections are solved. I have small objection
>>
>> + errdetail("exception raised due to \"null_value_treatment := 'raise_exception'\""),
>> + errhint("to avoid, either change the null_value_treatment argument or ensure that an SQL NULL is not used")));
>>
>> "null_value_treatment := 'raise_exception'\""
>>
>> it use proprietary PostgreSQL syntax for named parameters. Better to use ANSI/SQL syntax
>>
>> "null_value_treatment => 'raise_exception'\""
>>
>> It is fixed in attached patch
>>
>> source compilation without warnings,
>> compilation docs without warnings
>> check-world passed without any problems
>>
>> I'll mark this patch as ready for commiter
>>
>> Thank you for your work
>>
>
>
>Thanks for the review. I propose to commit this shortly.
>
Now that this was committed, I've updated the patch status accordingly.
Thanks!
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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: tomas.vondra@2ndquadrant.com, andrew.dunstan@2ndquadrant.com, pavel.stehule@gmail.com, michael@paquier.xyz, 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: <20200117232110.r4od7rqjhdkk54og@development>
References: <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> <CAA8=A79Z_zkWbRGGsPn6Sho53H=M=-ajX09Gy++coE_kGmMuEw@mail.gmail.com> <CAFj8pRDPGAedFbmM+NOaJqgWNPBb0BikOmDztqLKxU8Y1amjMQ@mail.gmail.com> <CAA8=A78Wwr-kqn8gBZRArM9Nj2j-+yu1UOsTfDrah2O=ZkunoQ@mail.gmail.com> <20200117232110.r4od7rqjhdkk54og@development>
* 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