| From: | Joachim Wieland <joe(at)mcknight(dot)de> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: pg_dump refactor patch to remove global variables |
| Date: | 2014-08-27 04:52:19 |
| Message-ID: | CACw0+10D8CaHrx1gzyyZVmpK7n+ty4AZOhoKGMfZomnaJKZNeQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Fixed and rebased patch attached.
On Tue, Aug 26, 2014 at 11:40 AM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> On 8/15/14 7:30 PM, Joachim Wieland wrote:
>> Attached is a patch that doesn't add any new functionality or
>> features, all it does is get rid of the global variables that
>> pg_dump.c is full of.
>
> I'm getting a compiler error:
>
> In file included from pg_dump.c:60:
> In file included from ./pg_backup_archiver.h:32:
> ./pg_backup.h:212:3: error: redefinition of typedef 'DumpOptions' is a
> C11 feature [-Werror,-Wtypedef-redefinition]
> } DumpOptions;
> ^
> ./pg_dump.h:507:29: note: previous definition is here
> typedef struct _dumpOptions DumpOptions;
> ^
> 1 error generated.
>
| Attachment | Content-Type | Size |
|---|---|---|
| pg_dump_refactor_globals.2.diff | text/plain | 154.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2014-08-27 05:07:39 | Re: Missing comment block at the top of streamutil.h and receivelog.h |
| Previous Message | Amit Kapila | 2014-08-27 04:48:38 | Re: Proposal for CSN based snapshots |