Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEsyY-0006mQ-R6 for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Mar 2020 11:04:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEsyW-0000Mp-Tx for pgsql-bugs@arkaria.postgresql.org; Thu, 19 Mar 2020 11:04:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEsyW-0000Mh-Ij for pgsql-bugs@lists.postgresql.org; Thu, 19 Mar 2020 11:04:32 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEsyP-0002b8-Li for pgsql-bugs@lists.postgresql.org; Thu, 19 Mar 2020 11:04:31 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 71C9C5C0191; Thu, 19 Mar 2020 07:04:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 19 Mar 2020 07:04:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm2; bh=RTPN8QUHJXZ6Oenpkt0c21y6xD2gaM50Ej8eCtQ6I vM=; b=IDkdpYbzHWNvkoSRDCslA5Tu4RWX71JiueNUUIV8w6o/cpycg8MVNCKOL BKQvxLuFfxhWsUHFf7C/wzeheb3eizwaIdgUTvxpf6xDFfNxUhi2KeSduUJu9h8q QrhauSlWBYcilvxTYsGJHaQ0JUgDKdua+eXrdMR/whEKRhC6MYsTfcTo+h3sqWen y8CVNDp9jVt2Y8q2mteoGDzVpOxUslWgK9hgO/FHMHIS07afSqgO+W7qBmvY3pks 7fc9wcB8LY4gM0VZ1Mckzc9GiYAtBYzG+XXFRf63nsahIcoP2zDK+mi+eaGXGjsR HVS8vCC9JZn9YEAxasByFhdpiJSag== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefledgvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvddufedrvdegudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id A885D3280059; Thu, 19 Mar 2020 07:04:22 -0400 (EDT) Subject: Re: BUG #16302: too many range table entries - when count partition table(65538 childs) To: Robert Haas , Tom Lane References: <16302-e45634e2c0e34e97@postgresql.org> <32763.1584198185@sss.pgh.pa.us> <28094.1584326310@sss.pgh.pa.us> <31331.1584452939@sss.pgh.pa.us> <1032.1584456128@sss.pgh.pa.us> Cc: Amit Langote , digoal@126.com, PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <54912a3b-fec1-eb85-4971-46de1a1d0f5e@2ndquadrant.com> Date: Thu, 19 Mar 2020 12:04:21 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 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: Precedence: bulk On 2020-03-17 16:04, Robert Haas wrote: >>> (It doesn't seem like we're all that careful about whether we're using >>> int, which is signed, or Index, which is unsigned, and we might want >>> to go around and tighten that up. >> >> Yeah, I'd be leery of trying to use that last bit. The cost-benefit >> ratio on that is *definitely* not attractive. > > That seems clear, but trying to be consistent about the types we use > for things is a good idea on general principle, even if we have no > intention of doing anything that really relies on it any time in the > forseeable future. If nothing else, it might avoid some compiler > warnings. You could make INNER_VAR -1 and so on. Then it would probably break quite clearly if it's not signedness clean. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services