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 1isavX-0004OH-99 for pgsql-general@arkaria.postgresql.org; Fri, 17 Jan 2020 23:21:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1isavW-0004WS-4S for pgsql-general@arkaria.postgresql.org; Fri, 17 Jan 2020 23:21:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1isavV-0004WJ-NJ for pgsql-general@lists.postgresql.org; Fri, 17 Jan 2020 23:21:17 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1isavS-0004uU-Mk for pgsql-general@lists.postgresql.org; Fri, 17 Jan 2020 23:21:16 +0000 Received: by mail-wr1-x444.google.com with SMTP id c14so24221898wrn.7 for ; Fri, 17 Jan 2020 15:21:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=2Yn7GJMcs6GN4gAFPKiF5UQIbapxegNXWPn2Ha5pZFc=; b=FpKAtKQtCyZ3IzlL0P+BuAKo1QDJ2zvrZuR689FZI6SvVPAmVG0f6WZgd0ydsG+TiR RFeVbU+nvIT/LRyIo/daZ46Ced02IvKisO/UsXuTHURnY8oOR8/UW7U4SYqnnHdqdJyT ZngR8SdUwRtKpi7yNmy2DSjfTshfBae91auo5fuPrzPGN3Fp5qRsEb5FPfHGhEbins59 nEBF2aFxwcK1vdeQkJ7nETeuqQT+9wRHF72S8PvrYDyTOmnAsZ7TaqHf8enlT1dR7m5z AOT/QHe6/JvLmr4Q+2lnYIzcptd5BDfpy3F9YFsWjQSX8AubX6b+0WU6VcADegYhis2f Cvtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=2Yn7GJMcs6GN4gAFPKiF5UQIbapxegNXWPn2Ha5pZFc=; b=Qq9g9mBDs1LILfWHYRXxvmkJ/6mydd+nSZZyMI0cAJ6bVk5U8a7S1VrDYe+ldz3Lm3 3n+BUFMshay0PM2XsCBIUohs351EfQhWh39AWBPcgWiC5CHz0cdjgWIxxzcVZkLYe1yo 1lu1VWYSlI1PNEZFQAoIV4Z50bB3geMSl8vTrjpdpwYpgXIuRxE40d/oOqQGhQ6cVuAR xAKuTGzfOA6lQaA4NgvOeDb5nRhoM/EEir/FWgW2HqPa8+yv6drAjVwD2F96YpcOsGIj bIaPyC/pv9/o7IiUZ2CqQnKESw51hIBrP1/OnzYmAOdlZJLHmaJr+9tSqmhb/nzEKKD/ zRIw== X-Gm-Message-State: APjAAAVthL3oXHB1jmmzZRqDGtlp2lZPqcrJWP5Aq444GXWuLlQ72+pF O3/j67pjYuWSxv8Ndv6XHxfdtbsP0y0= X-Google-Smtp-Source: APXvYqwS4ATxENW1eOcfkujP5AXKltRUrCMpKjvZItxax5ctLH34eNiJeVFHedzu2K/YKm/dgCbhJA== X-Received: by 2002:adf:f091:: with SMTP id n17mr5269989wro.387.1579303273037; Fri, 17 Jan 2020 15:21:13 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id f12sm1110997wmf.28.2020.01.17.15.21.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2020 15:21:11 -0800 (PST) Date: Sat, 18 Jan 2020 00:21:10 +0100 From: Tomas Vondra To: Andrew Dunstan Cc: Pavel Stehule , Michael Paquier , "David G. Johnston" , Floris Van Nee , Ariadne Conill , Mark Felder , "pgsql-generallists.postgresql.org" , PostgreSQL Hackers Subject: Re: jsonb_set() strictness considered harmful to data Message-ID: <20200117232110.r4od7rqjhdkk54og@development> References: <544ecc1e-681e-69f1-5cde-8b8aaeb45d7f@2ndQuadrant.com> <375873e2-c957-3a8d-64f9-26c43c2b16e7@2ndQuadrant.com> <20191128023529.GI237562@paquier.xyz> <25ef9c80-6853-9628-b759-c87b919e24b6@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Jan 08, 2020 at 05:24:05PM +1030, Andrew Dunstan wrote: >On Wed, Jan 8, 2020 at 7:08 AM Pavel Stehule wrote: >> >> Hi >> >> po 6. 1. 2020 v 22:34 odesílatel Andrew Dunstan 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