On 04/29/2014 11:13 AM, Rob Richardson
wrote:
Depends on the values of "tiny", "reasonably fast", the type of dump you are doing, etc. It's not surprising that your (gigabit?) office network performs better than a VPN connection from home. I'd try dumping to a file (your few-second dump) and look at the file-size compared to your reasonably-fast transferring files to see if it's simply a data-size issue which I suspect though it is, I suppose, possible that there is a latency or other issue. If you are doing a plain pg_dump the output is uncompressed text. You could use one of the compressed formats or do a dump->compress->transfer. N.B.: If you use a compressed format the compression happens in the pg_dump client, *not* in the server. So using a compressed format will not help if your dump client is at home and the server is at the other end of the VPN. You must compress the data at the office side of the connection. Cheers, Steve |