Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3D530133FFA6 for ; Sat, 28 Jan 2012 20:50:13 -0400 (AST) Received: from oproxy7.bluehost.com ([2605:dc00:100:2::a7] helo=oproxy7-pub.bluehost.com) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1RrIyA-0006uU-DL for pgsql-bugs@postgresql.org; Sun, 29 Jan 2012 00:50:13 +0000 Received: (qmail 6737 invoked by uid 0); 29 Jan 2012 00:49:56 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by oproxy7.bluehost.com with SMTP; 29 Jan 2012 00:49:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=YgM/hskeKQrQbnIcDJo7NAhJC07wcUpTkWl4r9uhfcQ=; b=RCvdOXnQhrMkUUZKZlHEO3XrKxIzirVxHLZG3swuG1aIBK0BBFdEPEiMpDEyDoQU40iSHhSyBolNbTsjKey5j2IeuF6GaUedH1c3VR88Ys8D3qZCYntAiFcp0ETrLYCB; Received: from [189.73.212.91] (helo=[10.3.2.6]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RrIxu-0002WB-QR; Sat, 28 Jan 2012 17:49:55 -0700 Message-ID: <4F24972F.6080904@timbira.com> Date: Sat, 28 Jan 2012 21:47:43 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16 MIME-Version: 1.0 To: Andy Grimm CC: PostgreSQL Bugs Subject: Re: BUG #6412: psql & fe-connect truncate passwords References: <4F242892.50403@timbira.com> <4F24437F.7080306@timbira.com> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 189.73.212.91 authed with euler@timbira.com} X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201201/225 X-Sequence-Number: 32292 On 28-01-2012 18:55, Andy Grimm wrote: > It's not uniform between the client and the server, though. > The server doesn't impose a hard limit for password length and AFAICS it should not because we aim for backward compatibility. > It sounds like you are suggesting > that rather than increase the limit in the simple_prompt calls, you'd > prefer to decrease the limit read from pwfile? That doesn't > particularly help me. > No, I am not. So there are three concerns here: (i) increase the limit for simple_prompt() and (ii) raise an error when we reach that limit and (iii) fix the PasswordFromFile(). Looking at your patch, it seems to fix only (i). > require understanding of what the real password length limit in a > database is. > There is no such limit; it is stored in a text datatype. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento