Re: fix psql \conninfo & \connect when using hostaddr

Поиск
Список
Период
Сортировка
От Fabien COELHO
Тема Re: fix psql \conninfo & \connect when using hostaddr
Дата
Msg-id alpine.DEB.2.21.1811171703090.16105@lancre
обсуждение исходный текст
Ответ на Re: fix psql \conninfo & \connect when using hostaddr  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: fix psql \conninfo & \connect when using hostaddr  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
>> I'm working on improving the patch.
>
> Cool.

Here is the updated v2

  - libpq internal function getHostaddr get a length,
    and I added an assert about it.
  - added a few braces on if/if/else/if/else/else
  - added an UNKNOWN_HOST macro to hide "???"
  - moved host_addr[] declaration earlier to avoid some braces
  - I have not refactored psql connection message,
    but finally agree with Pavel & you have a point.

-- 
Fabien.
Вложения

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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: fix psql \conninfo & \connect when using hostaddr
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: pg11.1 jit segv