pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ariadne Conill <ariadne@dereferenced.org>
To: 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: 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: Fri, 17 Jan 2020 23:28:09 +0000
Message-ID: <186aabc08298ee04736a1c994f64f218@dereferenced.org> (raw)
In-Reply-To: <20200117232110.r4od7rqjhdkk54og@development>
References: <20200117232110.r4od7rqjhdkk54og@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>
	<CAA8=A79Z_zkWbRGGsPn6Sho53H=M=-ajX09Gy++coE_kGmMuEw@mail.gmail.com>
	<CAFj8pRDPGAedFbmM+NOaJqgWNPBb0BikOmDztqLKxU8Y1amjMQ@mail.gmail.com>
	<CAA8=A78Wwr-kqn8gBZRArM9Nj2j-+yu1UOsTfDrah2O=ZkunoQ@mail.gmail.com>

Hello,

January 17, 2020 5:21 PM, "Tomas Vondra" <tomas.vondra@2ndquadrant.com> wrote:

> 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.

Thank you very much for coming together and finding a solution to this bug!

Ariadne





view thread (83+ messages)  latest in thread

Message-ID: <186aabc08298ee04736a1c994f64f218@dereferenced.org>
Permalink:  ../186aabc08298ee04736a1c994f64f218@dereferenced.org/
Also on:    postgresql.org/message-id/186aabc08298ee04736a1c994f64f218@dereferenced.org

 · 

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: ariadne@dereferenced.org, tomas.vondra@2ndquadrant.com, andrew.dunstan@2ndquadrant.com, pavel.stehule@gmail.com, michael@paquier.xyz, david.g.johnston@gmail.com, florisvannee@optiver.com, feld@freebsd.org, pgsql-hackers@lists.postgresql.org
  Subject: Re: jsonb_set() strictness considered harmful to data
  In-Reply-To: <186aabc08298ee04736a1c994f64f218@dereferenced.org>
  References: <20200117232110.r4od7rqjhdkk54og@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> <CAA8=A79Z_zkWbRGGsPn6Sho53H=M=-ajX09Gy++coE_kGmMuEw@mail.gmail.com> <CAFj8pRDPGAedFbmM+NOaJqgWNPBb0BikOmDztqLKxU8Y1amjMQ@mail.gmail.com> <CAA8=A78Wwr-kqn8gBZRArM9Nj2j-+yu1UOsTfDrah2O=ZkunoQ@mail.gmail.com> <186aabc08298ee04736a1c994f64f218@dereferenced.org>

* 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