Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EE0839FB432 for ; Thu, 21 Jun 2007 22:51:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 86955-03 for ; Thu, 21 Jun 2007 22:51:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 801109FB3EE for ; Thu, 21 Jun 2007 22:51:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5M1pBIV010462; Thu, 21 Jun 2007 21:51:11 -0400 (EDT) To: Rainer Bauer cc: pgsql-performance@postgresql.org Subject: Re: Data transfer very slow when connected via DSL In-reply-to: <24rl73d5td717rimunndjnjghfl1pgqojh@4ax.com> References: <7be3f35d0706210801p732f2e73o147e3cbc0dc98153@mail.gmail.com> <24rl73d5td717rimunndjnjghfl1pgqojh@4ax.com> Comments: In-reply-to Rainer Bauer message dated "Thu, 21 Jun 2007 23:26:43 +0200" Date: Thu, 21 Jun 2007 21:51:11 -0400 Message-ID: <10461.1182477071@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/504 X-Sequence-Number: 25537 Rainer Bauer writes: > Fetching the 50 rows takes 12 seconds (without logging 8 seconds) and > examining the log I found what I suspected: the performance is directly > related to the ping time to the server since fetching one tuple requires a > round trip to the server. Hm, but surely you can get it to fetch more than one row at once? This previous post says that someone else solved an ODBC performance problem with UseDeclareFetch=1: http://archives.postgresql.org/pgsql-odbc/2006-08/msg00014.php It's not immediately clear why pgAdmin would have the same issue, though, because AFAIK it doesn't rely on ODBC. I just finished looking through our archives for info about Windows-specific network performance problems. There are quite a few threads, but the ones that were solved seem not to bear on your problem (unless the one above does). I found one pretty interesting thread suggesting that the problem was buffer-size dependent: http://archives.postgresql.org/pgsql-performance/2006-12/msg00269.php but that tailed off with no clear resolution. I think we're going to have to get someone to watch the problem with a packet sniffer before we can get much further. regards, tom lane