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 1pef59-0000FI-HG for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Mar 2023 16:43:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pef58-0004U9-DI for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Mar 2023 16:43:30 +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 1pef58-0004Tx-3n for pgsql-hackers@lists.postgresql.org; Tue, 21 Mar 2023 16:43:30 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pef55-0008UE-B5 for pgsql-hackers@postgresql.org; Tue, 21 Mar 2023 16:43:28 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 8ED24320096C; Tue, 21 Mar 2023 12:43:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 21 Mar 2023 12:43:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1679417005; x=1679503405; bh=r7 3WpoDojeRO/gcCCwRlKUR6IKdhfqdAKy6A08JQ5aY=; b=jYAZJdLycdciwWYsbn r222FZQAdehh5QuTZdnwPl1BOdemVszA0deOTGpjrpJpQg/M2KpPSqpODs1wEVHq zLQMeFknyq3dSH/G0Ig7U/p+7zG6VIru1xZ6vsfMlwjz0wST1uZRp71pANtjNR8F xOQ7xYAMCNpKPEQ07+MBX8uyAP9z3PCYWIWAcAu9So3C1LBUqXDe6fik9YiCJRtA qvFTufkOZP+yikJazRGkpI27W8/bZXw0LhREMIsfu4uq/MQiOn42H/a7MVQRI02K x309BT95ERFsI4lKSF58pARKghyBa/AQnfLD+PKddWGMZfOEz/qLuPqX9dPj9GTu obcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679417005; x=1679503405; bh=r73WpoDojeRO/ gcCCwRlKUR6IKdhfqdAKy6A08JQ5aY=; b=WPc7fRadsTadSXP9QnJmiWbnEwgEO VOA0zwilH6wvlXebTcWH8sg2cwh6ifrLCUDLN14+ckmmnv1OtxAtFNraHrKd/kFv 3z66JeZDMoGndOVh7hbdelXZeuqUK45K5VXFQe5phVdsymWKJdyMQ5XnsmgJKpnL EOeqWDou6Hh4xjxlyBF+6jhYAzgaqKPzCx4a6du8Vgg0eVQ/FnbyLhOArvNStZkU 6QM8zSuSxdranlBPj41vM6JwIbdozlVX6QQXhPUVRTSH4YZhIKEqffCR3OqIGm9y FXIXYxnIiADHNJxM2T+dNbYIOXqAHWM0lrRVi9ZOnHVW326p+p1JQauTg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegtddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepvdfffeevhfetveffgeeiteefhfdtvdffjeevhfeuteegleduheetvedu ieettddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Mar 2023 12:43:24 -0400 (EDT) Date: Tue, 21 Mar 2023 09:43:23 -0700 From: Andres Freund To: Peter Eisentraut Cc: Tom Lane , pgsql-hackers Subject: Re: Save a few bytes in pg_attribute Message-ID: <20230321164323.mjaso2jffu2cj2dp@awork3.anarazel.de> References: <933390.1679323056@sss.pgh.pa.us> <20230320234457.s2magjpvmeqg6nqe@awork3.anarazel.de> <1110938.1679356272@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-03-21 17:36:48 +0100, Peter Eisentraut wrote: > On 21.03.23 00:51, Tom Lane wrote: > > Andres Freund writes: > > > On 2023-03-20 10:37:36 -0400, Tom Lane wrote: > > > > I agree that attinhcount could be narrowed, but I have some concern > > > > about attstattarget. IIRC, the limit on attstattarget was once 1000 > > > > and then we raised it to 10000. Is it inconceivable that we might > > > > want to raise it to 100000 someday? > > > > > Hard to believe that'd happen in a minor version - and I don't think there'd > > > an issue with widening it again in a major version? > > > > True. However, I think Tomas' idea of making these columns nullable > > is even better than narrowing them. Why not do both? > The context of my message was to do the proposed change for PG16 to buy back > a few bytes that are being added by another feature How much would you need to buy back to "reach parity"? Greetings, Andres Freund