Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap

Поиск
Список
Период
Сортировка
От Kunshchikov Vladimir
Тема Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap
Дата
Msg-id 26f687922d9f44ad98c2638e8a8a13de@infotecs.ru
обсуждение исходный текст
Ответ на Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap  (Kunshchikov Vladimir <Vladimir.Kunshchikov@infotecs.ru>)
Список pgsql-hackers


Hello, Alvaro,

  thanks for the suggestions,  attached version #3 with all of your requirements met. 



--
С уважением,
Владимир Кунщиков
Ведущий программист

Отдел разработки систем обнаружения и предотвращения компьютерных атак
Компания "ИнфоТеКС"


From: Alvaro Herrera <alvherre@2ndquadrant.com>
Sent: Wednesday, July 26, 2017 7:40:20 PM
To: Kunshchikov Vladimir
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror() mishap
 
Kunshchikov Vladimir wrote:
>  Hello Alvaro, thanks for the feedback, fixed all of your points.
> Attached new version of patch.

Looks great -- it's a lot smaller than the original even.  One final
touch -- see cfread(), where we have an #ifdef where we test for
fp->compressedfp; the "#else" branch uses the same code as the
!fp->compressedfp.  I think your get_cfp_error can be written more
simply using that form.  (Also, your version probably errors or warns
about "code before declaration" in that routine, which is not allowed in
C89.)

--
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Вложения

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

Предыдущее
От: Pavel Golub
Дата:
Сообщение: Re: [HACKERS] AlterUserStmt anmd RoleSpec rules in grammar.y
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: [HACKERS] A couple of postgresql.conf.sample discrepancies