Re: Increase psql's password buffer size - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Increase psql's password buffer size
Date
Msg-id 20200121151252.GC7084@momjian.us
Whole thread Raw
In response to Re: Increase psql's password buffer size  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: Increase psql's password buffer size
Re: Increase psql's password buffer size
List pgsql-hackers
On Tue, Jan 21, 2020 at 02:42:07PM +0900, Fujii Masao wrote:
> I have no strong opinion about the maximum length of password,
> for now. But IMO it's worth committing that 0001 patch as the first step
> for this problem.
> 
> Also IMO the more problematic thing is that psql silently truncates
> the password specified in the prompt into 99B if its length is
> more than 99B. I think that psql should emit a warning in this case
> so that users can notice that.

I think we should be using a macro to define the maximum length, rather
than have 100 used in various places.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +



pgsql-hackers by date:

Previous
From: James Coleman
Date:
Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort)
Next
From: David Fetter
Date:
Subject: Re: Increase psql's password buffer size