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 1isbEr-0004uF-AV for pgsql-committers@arkaria.postgresql.org; Fri, 17 Jan 2020 23:41:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1isbEp-0001Xz-8O for pgsql-committers@arkaria.postgresql.org; Fri, 17 Jan 2020 23:41:15 +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 1isbEo-0001WZ-Sq for pgsql-committers@lists.postgresql.org; Fri, 17 Jan 2020 23:41:15 +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 1isbEi-00055W-9t for pgsql-committers@lists.postgresql.org; Fri, 17 Jan 2020 23:41:13 +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 00HNf24Z030907; Fri, 17 Jan 2020 18:41:02 -0500 From: Tom Lane To: Andrew Dunstan cc: Andrew Dunstan , pgsql-committers Subject: Re: pgsql: Add a non-strict version of jsonb_set In-reply-to: References: <21806.1579227259@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Sat, 18 Jan 2020 09:42:12 +1030" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30905.1579304462.1@sss.pgh.pa.us> Date: Fri, 17 Jan 2020 18:41:02 -0500 Message-ID: <30906.1579304462@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: >> On Jan 17, 2020, at 12:44 PM, Tom Lane wrote: >>> Shoulda been a catversion bump in here, if only for protocol's sake. > I'd love to have a git pre-commit hook that would warn about this, it > seems to happen several times a year, and I know I've transgressed > more than once. Not sure what the rules should be, something like if > you changed src/include/catalog/* but not > src/include/catalog/catversion.h ? Meh. I think that would lead to forced catversion bumps even when not necessary (ex: when just correcting description strings). The cure could easily be worse than the disease. In reality, the only reason for repeated catversion bumps during development is to warn fellow developers that they have to do an initdb after a git pull. That's certainly a valuable courtesy, but the sky generally isn't going to fall if you forget. 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? regards, tom lane