pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: David Fetter <david@fetter.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Add a non-strict version of jsonb_set
Date: Sun, 19 Jan 2020 19:18:57 -0500
Message-ID: <25888.1579479537@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA8=A785UdZegGOF2jfNax7XbU79bJ1upJDpyqRYNFH5ZRhNUA@mail.gmail.com>
References: <21806.1579227259@sss.pgh.pa.us>
	<BFF9ACE6-E9D0-4222-B6B6-CBC7728AE7EC@dunslane.net>
	<CAA8=A79P1E727WU2L27Dx7LardkxjJAecCc0gBmj-hzWtdthpg@mail.gmail.com>
	<30906.1579304462@sss.pgh.pa.us>
	<20200119173545.GA30971@fetter.org>
	<18654.1579455979@sss.pgh.pa.us>
	<CAA8=A785UdZegGOF2jfNax7XbU79bJ1upJDpyqRYNFH5ZRhNUA@mail.gmail.com>

Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes:
> On Mon, Jan 20, 2020 at 4:16 AM Tom Lane <tgl@sss.pgh.pa.us> 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





view thread (18+ messages)  latest in thread

Message-ID: <25888.1579479537@sss.pgh.pa.us>
Permalink:  ../25888.1579479537@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25888.1579479537@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andrew.dunstan@2ndquadrant.com, david@fetter.org
  Subject: Re: pgsql: Add a non-strict version of jsonb_set
  In-Reply-To: <25888.1579479537@sss.pgh.pa.us>
  References: <21806.1579227259@sss.pgh.pa.us> <BFF9ACE6-E9D0-4222-B6B6-CBC7728AE7EC@dunslane.net> <CAA8=A79P1E727WU2L27Dx7LardkxjJAecCc0gBmj-hzWtdthpg@mail.gmail.com> <30906.1579304462@sss.pgh.pa.us> <20200119173545.GA30971@fetter.org> <18654.1579455979@sss.pgh.pa.us> <CAA8=A785UdZegGOF2jfNax7XbU79bJ1upJDpyqRYNFH5ZRhNUA@mail.gmail.com> <25888.1579479537@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox