Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap
Date
Msg-id 20170726164020.zavdyr4en3eheqrr@alvherre.pgsql
Whole thread Raw
Responses Re: [HACKERS] [patch] pg_dump/pg_restore zerror() and strerror()mishap
List pgsql-hackers
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 by date:

Previous
From: Sokolov Yura
Date:
Subject: Re: [HACKERS] Increase Vacuum ring buffer.
Next
From: Claudio Freire
Date:
Subject: Re: [HACKERS] Increase Vacuum ring buffer.