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 1itKmZ-0006Un-9l for pgsql-committers@arkaria.postgresql.org; Mon, 20 Jan 2020 00:19:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itKmY-000129-0g for pgsql-committers@arkaria.postgresql.org; Mon, 20 Jan 2020 00:19:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itKmX-000122-Pf for pgsql-committers@lists.postgresql.org; Mon, 20 Jan 2020 00:19:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itKmV-0000hI-Hh for pgsql-committers@lists.postgresql.org; Mon, 20 Jan 2020 00:19:05 +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 00K0IvR8025889; Sun, 19 Jan 2020 19:18:57 -0500 From: Tom Lane To: Andrew Dunstan cc: David Fetter , pgsql-committers Subject: Re: pgsql: Add a non-strict version of jsonb_set In-reply-to: References: <21806.1579227259@sss.pgh.pa.us> <30906.1579304462@sss.pgh.pa.us> <20200119173545.GA30971@fetter.org> <18654.1579455979@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Mon, 20 Jan 2020 10:32:49 +1030" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25887.1579479537.1@sss.pgh.pa.us> Date: Sun, 19 Jan 2020 19:18:57 -0500 Message-ID: <25888.1579479537@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On Mon, Jan 20, 2020 at 4:16 AM 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. > I was really thinking of a client side hook. The reason I started the > discussion is so I could institutionalize the knowledge, e.g. by > adding something to the wiki. Ah, that makes sense. Although Mark's idea of including a library of possible hooks somewhere under src/tools/ seems even better. > I was also thinking of something that would give a warning rather than > reject the commit. Then the committer could ignore it or not as they > choose. Something like that might also be valuable on the server > side, since it would mean all committers would get the warning when > appropriate, but it might not be worth the trouble. Another point is that a server-side hook is really too late: you'd rather get the notice before you "git push", not after. regards, tom lane