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 1pePHd-0006Ly-FI for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2023 23:51:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pePHc-0006CX-Al for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2023 23:51:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pePHc-0006CM-1X for pgsql-hackers@lists.postgresql.org; Mon, 20 Mar 2023 23:51:20 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pePHY-00079w-SY for pgsql-hackers@postgresql.org; Mon, 20 Mar 2023 23:51:19 +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 32KNpCk61110939; Mon, 20 Mar 2023 19:51:12 -0400 From: Tom Lane To: Andres Freund cc: Peter Eisentraut , pgsql-hackers Subject: Re: Save a few bytes in pg_attribute In-reply-to: <20230320234457.s2magjpvmeqg6nqe@awork3.anarazel.de> References: <933390.1679323056@sss.pgh.pa.us> <20230320234457.s2magjpvmeqg6nqe@awork3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 20 Mar 2023 16:44:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1110937.1679356272.1@sss.pgh.pa.us> Date: Mon, 20 Mar 2023 19:51:12 -0400 Message-ID: <1110938.1679356272@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. regards, tom lane