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 1itH3f-0007U4-0x for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 20:20: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 1itH3c-0007Rb-Eb for pgsql-committers@arkaria.postgresql.org; Sun, 19 Jan 2020 20:20:28 +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 1itH3c-0007O0-3K for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 20:20:28 +0000 Received: from xvm-110-146.dc2.ghst.net ([46.226.110.146] helo=fetter.org) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1itH3Z-0000rQ-Cw for pgsql-committers@lists.postgresql.org; Sun, 19 Jan 2020 20:20:26 +0000 Received: by fetter.org (Postfix, from userid 1001) id 8237C4096D; Sun, 19 Jan 2020 21:20:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fetter.org; s=default; t=1579465223; bh=DvIxITeBFvdZNs2dHAwsk7uh5yfXvqnTl0tphWCPqwc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dRSRVbSzY6N5kyF2wVuD4YELt4zOHEyWyAHSQioUskTKaANotAXt+g8Em+ACy16Y8 +VLkJNWygaB0HWUf9N7Ci0B+vKZU9KSrUN7qkqTd9Vanzdg6gd7AqeN5y3jktrgZKv hSwr7lVgEYU2gClo/9Mt3ZTaLyxh/4q6V8FUxaKOP2GeK3W/lIZmKm43IS6TrHWs4C rtYg6lP3Us4VvgjDFX0CJN6Wrl0KOFMsxerq3puTnbyFYhNkIApCB3gqmFi0U6tJ+w l3bUiURtlmvp1AqvvmpDhFACKVuQhLzagD/OqOEhpm58bKZjAbfS32pkaT3JwJbl/s y8S4dLKmlJOiQ== Date: Sun, 19 Jan 2020 21:20:23 +0100 From: David Fetter To: Tom Lane Cc: Andrew Dunstan , Andrew Dunstan , pgsql-committers Subject: Re: pgsql: Add a non-strict version of jsonb_set Message-ID: <20200119202022.GO32763@fetter.org> References: <21806.1579227259@sss.pgh.pa.us> <30906.1579304462@sss.pgh.pa.us> <20200119173545.GA30971@fetter.org> <18654.1579455979@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <18654.1579455979@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Sun, Jan 19, 2020 at 12:46:19PM -0500, Tom Lane wrote: > 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"? According to the folks I consulted, that would require special magic on the client side. How about something that sent an email or otherwise signaled the person pushing that this situation obtained? It's not ideal, but it's centralized, so harder to get inconsistent. > 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. Distributing the problem by asking people to have those hooks on their private repo seems like a suboptimal move. Change dev boxes, and watch your carefully structured safeguards vanish. Best, David. -- David Fetter http://fetter.org/ Phone: +1 415 235 3778 Remember to vote! Consider donating to Postgres: http://www.postgresql.org/about/donate