Re: incompatible pointer types with newer zlib
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2012-03-17T07:58:49Z
Lists: pgsql-hackers
Attachments
- pg_dump-zlib-fix.patch (text/x-patch) patch
On tor, 2012-03-01 at 19:19 +0200, Peter Eisentraut wrote: > I think the best fix would be to rearrange _PrintFileData() so that it > doesn't use FH at all. Instead, we could define a separate > ArchiveHandle field IF that works more like OF, and then change > ahwrite() to use that. Here is a patch that might fix this. I haven't been able to test this properly, so this is just from tracing the code. It looks like _PrintFileData() doesn't need to use FH at all, so it could use a local file handle variable instead. Could someone verify this please?