Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sywBa-003BEA-N4 for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 16:38:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sywBZ-003TTl-So for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Oct 2024 16:38:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sywBZ-003TTd-9L for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 16:38:45 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sywBT-000EKI-3G for pgsql-hackers@lists.postgresql.org; Thu, 10 Oct 2024 16:38:44 +0000 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5575A11400DB; Thu, 10 Oct 2024 12:38:38 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Thu, 10 Oct 2024 12:38:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1728578318; x= 1728664718; bh=2gRKv8a4BnD97y0SAQh0PexyqQDLjLoqWjY8GtgEF0M=; b=R qv4fA5seu602AJKW9geSZ/l/17BY8FBxho0PRUGt5bbLFNNGmblVzEyZV5F4a4jT BEHc0/C6kj+fYOh14Qvb0cT8cjKbj+UPcB8/iMhx9pyRLbJkCISYq3oa+BiC0Ctf AwU8yvkqTDXz6NjvQ/flm0X5ynXHLuH7mIPk+5HVe3q13YxLe0876A0qWa+BYc5t pl7cDQmK5HhONB/xWa3U4lSKti1la7kbSe7NYimt9kqW18a9VWCwxDA/KpdCJ7cD g3/ISw1WDHzVdsQuvzVhHQKXdRYRJDfcke/RHZeMBAnXPD4XI65CW7umitqxnQjF toAw6gKr/s74KKvcD2zkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdefhedguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpeektdfhkeevudeugfeuleet kefgjeegkeeuudduueevuedvudffgffgteeihfdvfeenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgpdgvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhu thdprhgtphhtthhopehjihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtoh hmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhr vghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 10 Oct 2024 12:38:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1728578316; bh=9VrMSSEqqH5JfXQ7XJ8WupBeHJWsIVxsGcLaBYimLU4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=jeWPpqpJssf2w3lhfg+6Y0rAl2XL8yOdV1YVm4wrFEc7PqQ1i8vTkjLIXK7TpWiZq wC2JsEENvCyxL3deQEd8YlBhDO7kpz0jrsisxi58Al8h8yKDhs6zAHuO55hOvnE/mH 4K7bLAvySTxcUx1ZXx6gOoxCqiswCOvGV5xDlt0zF489q/tHRTriTFg31pcQsnwSA9 FupJ5u/JaZzb+kdzC3BXHVRnKl4IPjEeBrpAcY/uEeZseru5rVhXYWmaArBwgqSLXo Hutm28PNpooCnILwa5ZSIC5UCs7p8LM35EIheACFdSCoHs96AX+cjm6kLr98QNjEH4 uSup6BNBio7MA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 8D1DBAA; Thu, 10 Oct 2024 18:38:36 +0200 (CEST) Date: Thu, 10 Oct 2024 18:38:36 +0200 From: Alvaro Herrera To: jian he Cc: Pg Hackers Subject: Re: overflow bug for inhcounts Message-ID: <202410101638.qikdezkpvups@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Oct-09, jian he wrote: > CreateConstraintEntry(const char *constraintName, > we can change > int conInhCount, > to > int16 conInhCount. > doing that, meaning we also need to refactor some of the caller functions. Good thought, thanks. > we can also change > node Constraint field inhcount from int to int16. Nah, that field is unused, so I removed it. I gave another look at the not-nulls branch, and we can do without it. This is pushed, although there was a technical glitch (since fixed by Magnus Hagander) and the pgsql-committers message was not sent. But you can see it here: https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=fd64ed60b62697984bb69a09a3ae19fbe2905eb6 -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/