Re: pgsql: pg_dump: Reduce use of global variables - Mailing list pgsql-committers

From Andrew Dunstan
Subject Re: pgsql: pg_dump: Reduce use of global variables
Date
Msg-id 543D807B.3090902@dunslane.net
Whole thread Raw
In response to pgsql: pg_dump: Reduce use of global variables  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: pgsql: pg_dump: Reduce use of global variables  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-committers
On 10/14/2014 02:20 PM, Alvaro Herrera wrote:
> pg_dump: Reduce use of global variables
>
> Most pg_dump.c global variables, which were passed down individually to
> dumping routines, are now grouped as members of the new DumpOptions
> struct, which is used as a local variable and passed down into routines
> that need it.  This helps future development efforts; in particular it
> is said to enable a mode in which a parallel pg_dump run can output
> multiple streams, and have them restored in parallel.
>
> Also take the opportunity to clean up the pg_dump header files somewhat,
> to avoid circularity.
>
> Author: Joachim Wieland, revised by Álvaro Herrera
> Reviewed by Peter Eisentraut
>
>

This appears to have broken MSVC builds. See
<http://www.pgbuildfarm.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2014-10-14%2019%3A30%3A27>

cheers

andrew


pgsql-committers by date:

Previous
From: Alvaro Herrera
Date:
Subject: pgsql: pg_dump: Reduce use of global variables
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Blind attempt at fixing Win32 pg_dump issues