Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfGIB-0003H3-OX for pgsql-admin@arkaria.postgresql.org; Tue, 29 Apr 2014 22:14:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfGIB-0002kU-8b for pgsql-admin@arkaria.postgresql.org; Tue, 29 Apr 2014 22:14:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfGIA-0002kO-GA for pgsql-admin@postgresql.org; Tue, 29 Apr 2014 22:14:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfGI6-0006La-FI for pgsql-admin@postgresql.org; Tue, 29 Apr 2014 22:14:20 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s3TMEHlA028745; Tue, 29 Apr 2014 18:14:17 -0400 From: Tom Lane To: Rob Richardson cc: "pgsql-admin@postgresql.org" Subject: Re: Slow backups over VPN In-reply-to: <67D108EDFAD3C148A593E6ED7DCB4BBDD844867A@RADCONWIN2K8PDC.radcon.local> References: <67D108EDFAD3C148A593E6ED7DCB4BBDD844867A@RADCONWIN2K8PDC.radcon.local> Comments: In-reply-to Rob Richardson message dated "Tue, 29 Apr 2014 18:13:37 -0000" Date: Tue, 29 Apr 2014 18:14:17 -0400 Message-ID: <28744.1398809657@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Rob Richardson writes: > I have a tiny database that I need to take frequent backups of. The database is on a test server in our office. When I'm at the office, backups take only a few seconds. But when I am working from home, connecting to the office through a SonicWall VPN, backups take a few minutes. Other data transfer operations, like file copies, are reasonably fast. I've seen this behavior for databases using PostgreSQL8.4, 9.0 and 9.3. Can you suggest any way that I might get backups to be reasonably fast? Does your "tiny" database contain lots of small objects (functions, perhaps)? I'm just guessing here, but I wonder if you aren't getting killed by round-trip latency. pg_dump issues quite a lot of per-object queries, so if there are lots of objects, high latency would pose a problem even if the one-way throughput is reasonably fast. It would be interesting to find out the round trip time through your VPN as measured by, say, ping. If this theory is correct, there's probably no easy fix :-(. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin