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.92) (envelope-from ) id 1j7Shv-0000ya-Cx for pgsql-committers@arkaria.postgresql.org; Thu, 27 Feb 2020 23:36:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7Sht-0007lj-Rv for pgsql-committers@arkaria.postgresql.org; Thu, 27 Feb 2020 23:36:41 +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 1j7Sht-0007lc-Gi for pgsql-committers@lists.postgresql.org; Thu, 27 Feb 2020 23:36:41 +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 1j7Shr-00068D-4u; Thu, 27 Feb 2020 23:36:40 +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 01RNaagA025327; Thu, 27 Feb 2020 18:36:36 -0500 From: Tom Lane To: Jeff Davis cc: Jeff Davis , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Save calculated transitionSpace in Agg node. In-reply-to: <0d6f3e77dc0c02ee4ab44dff3c8b15ac8f06f99a.camel@j-davis.com> References: <12491.1582833409@sss.pgh.pa.us> <0d6f3e77dc0c02ee4ab44dff3c8b15ac8f06f99a.camel@j-davis.com> Comments: In-reply-to Jeff Davis message dated "Thu, 27 Feb 2020 15:28:47 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25325.1582846596.1@sss.pgh.pa.us> Date: Thu, 27 Feb 2020 18:36:36 -0500 Message-ID: <25326.1582846596@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jeff Davis writes: > On Thu, 2020-02-27 at 14:56 -0500, Tom Lane wrote: >> Surely this patch is a few bricks shy of a load. Don't you need >> copyfuncs/readfuncs/outfuncs support, for starters? > Sorry, I will fix it. > I was looking at whether changes to copyfuncs (etc.) should also cause > a catversion bump, and it seems inconsistent. Commit 9ce77d75 does, but > 6ef77cf4 does not. Any particular rules around that? Not terribly > important as the catversion was just bumped anyway; just curious. You need a catversion bump if stored rules/views would change, ie when messing with something that can appear in parser output. The old rule of thumb was "if you touched readfuncs.c you probably need a catversion bump", but this is less true now that we have read/write support for plan trees (which need serialization support so we can send them to parallel workers, but there's no permanent storage). In this case, since it's only touching plan nodes, you need copyfuncs/readfuncs/outfuncs adjustments but not a catversion bump. regards, tom lane