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 1srLCp-000jwi-BQ for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Sep 2024 17:44:40 +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 1srLCn-005DoG-Aj for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Sep 2024 17:44:38 +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 1srLCn-005Dnu-1K for pgsql-hackers@lists.postgresql.org; Thu, 19 Sep 2024 17:44:38 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1srLCk-0003OU-NX for pgsql-hackers@postgresql.org; Thu, 19 Sep 2024 17:44:37 +0000 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-82ce1cd202cso58239939f.0 for ; Thu, 19 Sep 2024 10:44:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726767875; x=1727372675; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=sSobbGWb870f7+PGb4qxaiQSsy2m6sVFhVFAHuGyPSs=; b=aedC13yB0xy5lejWZeP42O2KIOPeN8qqKlw/UJWFI/XsOUYM+ACM3KwIqjRIRrEIzE pGba4i9FV56Lp9H/95dcE5bMQIL8/jfo5TKIuORo51DAwlDh9WfAM/RFCgTauqoo0+xt wtZNmaYn0u1RWqSY/bbbL9fuq7OqVeEE0hKCSoktDc++7txVWflv+jzmNNVjT0dO4VGW BBXHXnjLNTZm1vsZ9+Qyu6KSE6ybJMrfiFQQ2Es7dv9Gg+wUMtbigWcQuBvMOyxmdLSo ntvIGoMJmQ9f/BRXW/4pzpxODvoaiP9lEU37au3l43O/iEhGJo6zqPkTwJbBLYdnvRxn qdXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726767875; x=1727372675; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sSobbGWb870f7+PGb4qxaiQSsy2m6sVFhVFAHuGyPSs=; b=gPfl6kCRgU9FsMm1FT+KVwhX3Nm71fHC9RcoJNsB2biA+8KnKR51n2tFE/iXYZQpxP LoXSV+elrAOVLEZ7/UuIuBQIwEKd09ji8foHx6MbJ2nhv4TvtJ6wpqN72Eu20nrGfz/K QKlyNbi/QATLDYj8AkFz9gK5xMML1Ihtm6VXaMKpPvqpf0AXUp9s25adbralAsuvKhjL tEaKc+X33BF/lCkOD5O+N903IUxeuIbNkMf9O1KrunGs9YtrPvYnEtI4twVYNoOfyOKH etBC8ykSfEMagMjmS3wXOGf3mj2jfIFT6bT7UICl8X5gounJ6ZoC/I1wWdeY2wm2DGvo Yukg== X-Forwarded-Encrypted: i=1; AJvYcCWF7GpeEYIfKc2Gszt6zWJFDCONrPSYjqpTOe1m5N/WlipwTgzN/UbRwtD1giQKk7a4qHuOkfSUW7jwloAa@postgresql.org X-Gm-Message-State: AOJu0YwxK1h4eQNzgd2uiee+JkOR8B4cyll7O1WPUTyqQnPPcpIZQvsh PI0GEUf9lMZ/CYAUGs0igPbWZJLcq7DtLFJn8pU4Dyy883G/UG2E X-Google-Smtp-Source: AGHT+IFK8dvbfI4IR1iDVTwWdfYj2AWv72p3h1mJvcvhqDLocKZRAosOJ2cZfz033fjdvSP3Rt9iyA== X-Received: by 2002:a05:6602:490:b0:82c:f2f5:388d with SMTP id ca18e2360f4ac-83209d0565cmr35609639f.7.1726767874756; Thu, 19 Sep 2024 10:44:34 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4d37ed35688sm3043766173.150.2024.09.19.10.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 10:44:34 -0700 (PDT) Date: Thu, 19 Sep 2024 12:44:32 -0500 From: Nathan Bossart To: Tom Lane Cc: Alexander Lakhin , pgsql-hackers Subject: Re: Should rolpassword be toastable? Message-ID: References: <89e8649c-eb74-db25-7945-6d6b23992394@gmail.com> <1284094.1695479962@sss.pgh.pa.us> <67793ae1-3adc-a6e0-0bb3-c23a28c0627a@gmail.com> <1986859.1726756275@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1986859.1726756275@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Sep 19, 2024 at 10:31:15AM -0400, Tom Lane wrote: > 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. Something like that could be good enough. I was thinking about actually validating that the hash had the correct form, but that might be a little more complex than is warranted here. -- nathan