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 1itEed-0002oT-3a for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 17:46:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itEeb-0005nI-Av for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 17:46:29 +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 1itEea-0005nB-W2 for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 17:46:29 +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 1itEeY-00089s-6J for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 17:46:27 +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 00JHkJVZ018655; Sun, 19 Jan 2020 12:46:19 -0500 From: Tom Lane To: David Fetter cc: Andrew Dunstan , Andrew Dunstan , pgsql-committers Subject: Re: pgsql: Add a non-strict version of jsonb_set In-reply-to: <20200119173545.GA30971@fetter.org> References: <21806.1579227259@sss.pgh.pa.us> <30906.1579304462@sss.pgh.pa.us> <20200119173545.GA30971@fetter.org> Comments: In-reply-to David Fetter message dated "Sun, 19 Jan 2020 18:35:45 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18653.1579455979.1@sss.pgh.pa.us> Date: Sun, 19 Jan 2020 12:46:19 -0500 Message-ID: <18654.1579455979@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Fetter writes: > On Fri, Jan 17, 2020 at 06:41:02PM -0500, Tom Lane wrote: >> I'd be okay with a hook that there was a way to override ("yes, >> I know what I'm doing, this doesn't require a catversion change"). >> But there's no way to do that is there? > I'm pretty sure there is. The program called by the commit hook can > prompt the user for input. ... um, but the commit hook in question would run on the repo server. Is there really something in the git protocol that would allow sending this sort of interaction back to the person running "git push"? 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. regards, tom lane