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 1pomuw-0008Qa-31 for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Apr 2023 15:06:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pomus-0005od-Mu for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Apr 2023 15:06:46 +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 1pomus-0005oU-EV for pgsql-bugs@lists.postgresql.org; Tue, 18 Apr 2023 15:06:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pomup-000WEB-W9 for pgsql-bugs@lists.postgresql.org; Tue, 18 Apr 2023 15:06:45 +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 33IF6fIA2654444; Tue, 18 Apr 2023 11:06:41 -0400 From: Tom Lane To: Alexander Korotkov cc: Pavel Borisov , Alexander Lakhin , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17847: Unaligned memory access in ltree_gist In-reply-to: References: <17847-171232970bea406b@postgresql.org> <3966266.1678995315@sss.pgh.pa.us> <365d1917-f5b7-ff20-2d0b-8d501cee5434@gmail.com> Comments: In-reply-to Alexander Korotkov message dated "Tue, 18 Apr 2023 14:43:38 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2654442.1681830401.1@sss.pgh.pa.us> Date: Tue, 18 Apr 2023 11:06:41 -0400 Message-ID: <2654443.1681830401@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexander Korotkov writes: > LGMT. I'm going to push v3 unless there are more comments. I think this reads pretty awkwardly: +ERROR: siglen value must be integer-aligned +DETAIL: Valid are int-aligned values between "4" and "2024". The DETAIL message's grammar seems a bit off. Also, this is confusing the range limitation with the alignment requirement. How about just saying ERROR: siglen value must be a multiple of 4 and leaving out-of-range cases to be handled by the existing check? regards, tom lane