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 1oaRyo-0006aZ-Do for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2022 01:23:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaRym-0001R9-FV for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Sep 2022 01:23:16 +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 1oaRym-0001R0-6T for pgsql-hackers@lists.postgresql.org; Tue, 20 Sep 2022 01:23:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaRyj-0003BV-Df for pgsql-hackers@lists.postgresql.org; Tue, 20 Sep 2022 01:23:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28K1N8BQ555400; Mon, 19 Sep 2022 21:23:08 -0400 From: Tom Lane To: David Rowley cc: Andres Freund , Julien Rouhaud , Robert Haas , Yura Sokolov , PostgreSQL Developers Subject: Re: Reducing the chunk header sizes on all memory context types In-reply-to: References: <3021143.1662432194@sss.pgh.pa.us> <20220907130552.sfjri7jublfxyyi4@jrouhaud> <3666758.1662563307@sss.pgh.pa.us> <20220908164409.ptv66iogw2kvnwj5@awork3.anarazel.de> <4098200.1662660636@sss.pgh.pa.us> <20220908221523.c2nsmn7cvsdqvxvn@awork3.anarazel.de> <4159947.1662677609@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Tue, 20 Sep 2022 13:11:56 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <555398.1663636988.1@sss.pgh.pa.us> Date: Mon, 19 Sep 2022 21:23:08 -0400 Message-ID: <555399.1663636988@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk David Rowley writes: > Aside from that, I don't have any ideas on how to get rid of the > possible additional datumCopy() from non-Var arguments to these window > functions. Should we just suffer it? It's quite likely that most > arguments to these functions are plain Vars anyway. No, we shouldn't. I'm pretty sure that we have various window functions that are deliberately designed to take advantage of the no-copy behavior, and that they have taken a significant speed hit from your having disabled that optimization. I don't say that this is enough to justify reverting the chunk header changes altogether ... but I'm completely not satisfied with the current situation in HEAD. regards, tom lane