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 1srICp-000Q0c-LA for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Sep 2024 14:32:28 +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 1srIBp-0025qE-HI for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Sep 2024 14:31:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srIBp-0025q5-7Y for pgsql-hackers@lists.postgresql.org; Thu, 19 Sep 2024 14:31:26 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srIBi-000209-MN for pgsql-hackers@postgresql.org; Thu, 19 Sep 2024 14:31:25 +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 48JEVFg81986860; Thu, 19 Sep 2024 10:31:15 -0400 From: Tom Lane To: Nathan Bossart cc: Alexander Lakhin , pgsql-hackers Subject: Re: Should rolpassword be toastable? In-reply-to: References: <89e8649c-eb74-db25-7945-6d6b23992394@gmail.com> <1284094.1695479962@sss.pgh.pa.us> <67793ae1-3adc-a6e0-0bb3-c23a28c0627a@gmail.com> Comments: In-reply-to Nathan Bossart message dated "Thu, 19 Sep 2024 09:22:31 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1986858.1726756275.1@sss.pgh.pa.us> Date: Thu, 19 Sep 2024 10:31:15 -0400 Message-ID: <1986859.1726756275@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Hm. It does seem like there's little point in giving pg_authid a TOAST > table, as rolpassword is the only varlena column, and it obviously has > problems. But wouldn't removing it just trade one unhelpful internal error > when trying to log in for another when trying to add a really long password > hash (which hopefully nobody is really trying to do in practice)? I wonder > if we could make this a little more user-friendly. We could put an arbitrary limit (say, half of BLCKSZ) on the length of passwords. regards, tom lane