Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6BAF1A17FF5 for ; Fri, 27 Jan 2012 22:15:35 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqxpG-0000EL-0J for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 02:15:34 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rqxp3-0000t7-8B for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 02:15:21 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Rqxp2-0004Qt-PL for pgsql-bugs@postgresql.org; Sat, 28 Jan 2012 02:15:20 +0000 Date: Sat, 28 Jan 2012 02:15:20 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6412: psql & fe-connect truncate passwords To: pgsql-bugs@postgresql.org From: agrimm@gmail.com X-Pg-Spam-Score: -1.0 (-) X-Archive-Number: 201201/212 X-Sequence-Number: 32279 The following bug has been logged on the website: Bug reference: 6412 Logged by: Andy Grimm Email address: agrimm@gmail.com PostgreSQL version: 9.1.2 Operating system: Linux (Fedora) Description: = When psql prompts for a password, it only reads the first 100 characters of the password. The limit in fe-connect.c (for when .pgpass is used) is weirder, a seemingly arbitrary 320 bytes for all fields combined. Other (postgresql-jdbc, PyGreSQL, etc.) have no problem with a 512-byte password. = It would be nice to have these limits controlled by a constant, and for the command to give an error or warning when a password is truncated.