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 1itI06-00012t-7L for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 21:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itI04-00048l-RA for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 21:20:52 +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 1itI04-000460-GK for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 21:20:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itHzy-0001IH-45 for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 21:20:51 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 00JLKb0Y015952; Sun, 19 Jan 2020 16:20:37 -0500 From: Tom Lane To: Mark Dilger cc: David Fetter , Andrew Dunstan , Andrew Dunstan , pgsql-committers Subject: Re: pgsql: Add a non-strict version of jsonb_set In-reply-to: <6F023748-BBBD-45EE-9119-E2718AD1D73A@enterprisedb.com> References: <21806.1579227259@sss.pgh.pa.us> <30906.1579304462@sss.pgh.pa.us> <20200119173545.GA30971@fetter.org> <18654.1579455979@sss.pgh.pa.us> <20200119202022.GO32763@fetter.org> <6F023748-BBBD-45EE-9119-E2718AD1D73A@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Sun, 19 Jan 2020 13:12:58 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <15950.1579468837.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sun, 19 Jan 2020 16:20:37 -0500 Message-ID: <15951.1579468837@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Mark Dilger writes: > On Jan 19, 2020, at 12:20 PM, David Fetter wrote: >> On Sun, Jan 19, 2020 at 12:46:19PM -0500, Tom Lane wrote: >>> I think you are right that individual committers could set up such hooks >>> in their own private repos. But that's not what was being suggested, >>> or so I thought. > Client side hooks of this kind could be useful for developers without > community commit privileges, since local repository commits could also be > rejected, perhaps with an “are you sure” type override option, and more > than a catversion checking hook would be possible. Yeah, the point that this could be useful to non-committer contributors seems pretty compelling. The catversion complaint in particular would *not* be useful, since you're generally not supposed to include catversion bumps in submitted patches --- but I can easily envision that other check-hooks might be of widespread use. regards, tom lane