Re: Increase psql's password buffer size

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Increase psql's password buffer size
Дата
Msg-id 20200121152359.GD7084@momjian.us
обсуждение исходный текст
Ответ на Re: Increase psql's password buffer size  (David Fetter <david@fetter.org>)
Ответы Re: Increase psql's password buffer size
Список pgsql-hackers
On Tue, Jan 21, 2020 at 04:19:13PM +0100, David Fetter wrote:
> On Tue, Jan 21, 2020 at 10:12:52AM -0500, Bruce Momjian wrote:
> > I think we should be using a macro to define the maximum length, rather
> > than have 100 used in various places.
> 
> It's not just 100 in some places. It's different in different places,
> which goes to your point.
> 
> How about using a system that doesn't meaningfully impose a maximum
> length? The shell variable is a const char *, so why not just
> re(p)alloc as needed?

Uh, how do you know how big to make the buffer that receives the read?

-- 
  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 по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Increase psql's password buffer size
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: We're getting close to the end of 2020-01 CF