Re: Remove one use of IDENT_USERNAME_MAX

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Remove one use of IDENT_USERNAME_MAX
Дата
Msg-id 13092.1572359640@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Remove one use of IDENT_USERNAME_MAX  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: Remove one use of IDENT_USERNAME_MAX
Список pgsql-hackers
Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> On 2019-10-28 14:45, Tom Lane wrote:
>> Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
>>> In think one of the reasons for the coding is the fact that *pw is
>>> described to be placed in the static area, which can be overwritten by
>>> succeeding calls to getpw*() functions.

>> Good point ... so maybe pstrdup instead of using a fixed-size buffer?

> Maybe.  Or we just decide that check_usermap() is not allowed to call 
> getpw*().  It's just a string-matching routine, so it doesn't have any 
> such business anyway.

I'm okay with that as long as you add a comment describing this
assumption.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Shay Rojansky
Дата:
Сообщение: Re: strpos behavior change around empty substring in PG12
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Add const qualifiers to internal range type APIs