I don't think it's even possible. You're asking to take a file that is currently open with uncompressed data being actively written to it and compress it while this is taking place. Even if there were some curious way of masking or proxying the data being written to that filehandle, it seems like an awfully long and painful way to go for your results.
One way you could probably retool it for windows would be to use the windows version of zip.
# Substitute whatever tool you use to dump your db pg_dump -Udbadmin dbname | zip dbname-backup -
And then you could extract it with:
unzip -c dbname-backup -
--
"This alcoholism thing, I think it's just clever propaganda produced by people who want you to buy more bottled water." -- pedestrianwolf
In reply to Re^3: Stream data from application to Gzip
by naChoZ
in thread Stream data from application to Gzip
by TeraMarv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |