Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNWum-0000XF-0e for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Sep 2021 08:57:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNWul-00078C-0U for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Sep 2021 08:57:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNWuk-00077v-Oh for pgsql-hackers@lists.postgresql.org; Tue, 07 Sep 2021 08:57:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNWug-0007FP-RM for pgsql-hackers@postgresql.org; Tue, 07 Sep 2021 08:57:10 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B5EEC5C0114; Tue, 7 Sep 2021 04:57:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 07 Sep 2021 04:57:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=mmvDrzO4uwd3JYtBDUhaL5t5qhpc7V6J31gfV+SWL cE=; b=UUwPJIU0RMIqDjXZSEylsdHXHtlnBQ3BFbiETgmOO/oZoapWY1+No4F1g VqKPVKo9LgR2zbt1PZmMduolrFJ536wUf0Qggue3Qa6iw9IhvBtSVnsPCrnmkt1u KkMRAXFslXUPHMH8auAQFmF5eFkVMYD0H6ibjowsVvF64f6vPrzzpuB8ONmdOdGY gOKVqPg1GuPIwVpfOLo2jPxvK6De1LClby0Mw0J/eeaCQB0Zn0E2WFjjuryKH85z egZ20Q0yLQoA+lbskJnMDR+VUiUXw90LVmJoP7Xdy18NCXeW4LUFWzWKr8orYL9c tipNvyu4DDeuVrY2PV6gw7l2Lqy8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudefhedgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepleevheehueeiudeiteei tdekueetleefteejffeiffdugedvffdvffdtiedvueeknecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Sep 2021 04:57:03 -0400 (EDT) Subject: Re: automatically generating node support functions To: Jacob Champion , "pgsql-hackers@postgresql.org" References: <2f876203-7142-fa71-6d22-6ce00eb26869@enterprisedb.com> From: Peter Eisentraut Message-ID: <5451a7c4-3ccc-8b28-80d0-549e030cc01d@enterprisedb.com> Date: Tue, 7 Sep 2021 10:57:02 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 02.09.21 20:53, Jacob Champion wrote: >> 0004-Make-node-output-prefix-match-node-structure-name.patch >> >> Some nodes' output/read functions use a label that is slightly different >> from their node name, e.g., "NOTIFY" instead of "NOTIFYSTMT". This >> cleans that up so that an automated approach doesn't have to deal with >> these special cases. > > Is there any concern about the added serialization length, or is that > trivial in practice? The one that particularly caught my eye is > RANGETBLENTRY, which was previously RTE. But I'm not very well-versed > in all the places these strings can be generated and stored. These are just matters of taste. Let's wait a bit more to see if anyone is concerned. >> 0005-Add-Cardinality-typedef.patch >> >> Adds a typedef Cardinality for double fields that store an estimated row >> or other count. Works alongside Cost and Selectivity. > > Should RangeTblEntry.enrtuples also be a Cardinality? Yes, I'll add that.