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 1o1z3K-0006sG-Ep for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jun 2022 23:37:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o1z3J-0002Su-9I for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Jun 2022 23:37:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1z3J-0002S3-0L for pgsql-hackers@lists.postgresql.org; Thu, 16 Jun 2022 23:37:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o1z3C-00059V-LK for pgsql-hackers@postgresql.org; Thu, 16 Jun 2022 23:37:27 +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 25GNbEF31014297; Thu, 16 Jun 2022 19:37:14 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@postgresql.org, Nikita Glukhov , Andrew Dunstan , David Rowley Subject: Re: PG 15 (and to a smaller degree 14) regression due to ExprEvalStep size In-reply-to: <20220616233130.rparivafipt6doj3@alap3.anarazel.de> References: <20220616233130.rparivafipt6doj3@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 16 Jun 2022 16:31:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1014295.1655422634.1@sss.pgh.pa.us> Date: Thu, 16 Jun 2022 19:37:14 -0400 Message-ID: <1014296.1655422634@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > However, jsonexpr/EEOP_JSONEXPR is 296 bytes, and > hashedscalararrayop/EEOP_HASHED_SCALARARRAYOP is 64 bytes, even though the > limit is 40 bytes. Oops. > Maybe it's worth sticking a StaticAssert() for the struct size > somewhere. Indeed. I thought we had one already. > I'm a bit wary about that being too noisy, there are some machines with > odd alignment requirements. Perhaps worth restricting the assertion to > x86-64 + armv8 or such? I'd put it in first and only reconsider if it shows unfixable problems. regards, tom lane