Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9iJY-0006hA-CI for pgsql-performance@postgresql.org; Thu, 06 Sep 2012 20:04:36 +0000 Received: from nm4-vm2.bullet.mail.ne1.yahoo.com ([98.138.90.152]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1T9iJV-0002zA-Q7 for pgsql-performance@postgresql.org; Thu, 06 Sep 2012 20:04:34 +0000 Received: from [98.138.90.53] by nm4.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2012 20:04:32 -0000 Received: from [98.138.89.169] by tm6.bullet.mail.ne1.yahoo.com with NNFMP; 06 Sep 2012 20:04:32 -0000 Received: from [127.0.0.1] by omp1025.mail.ne1.yahoo.com with NNFMP; 06 Sep 2012 20:04:32 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 237334.59798.bm@omp1025.mail.ne1.yahoo.com Received: (qmail 43436 invoked by uid 60001); 6 Sep 2012 20:04:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1346961872; bh=yepxmQtUpwsZq4G1CEY2msMbFd1EAJtWe/DKXsxwMvI=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1Mvncx//WNmXZiGghgxULXaM+Hft4ahpEvIb9i/Q+2HNxlj3MBGuuIw3Idj2RdS+Oc+ACZhWaDIjON5G3/bBOkwKRAChOayXf1MIUxu1kyqqH3HZfJxmROHPyYzfg6WTcslh/n19ZZwCiRTwM44UMGSsbgUctw+G9CwFw6FvHYg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Uso7aHHoci9FVnSdA0SzolnUsHOoeNTSlIjIW3jXfSp+FrJvt/ZWN2nNDsB4bcMO734PfI474sLY9RgPfLhumt7lKinx7YOHtqrKwIPYN4tVSd/UmmRSfxD9HFDiKf6dMlAeQTMf/4KDP8/cZBeOInt1ompakv+9Zy3ffvWroMI=; X-YMail-OSG: eyN332QVM1lW_tiJc4D_opvmg7tAgl5bOnmJDYt6x9iJIZS Uses88e57YDMNxDTuc.OQAcvPBSbTDQFa.04tUWJYIjVWAOtdv1uG3QQ325T ncb50_b6QabSMJdl.Pcn2BQD6ytpgKgD3pgDdW7YyuSQPcfpLV0LxMLP5Zs1 r2lZfwreBs8c4bFnejXXt8HpJS309THuzWCHMiRpne.jvnzvzul3j9DEgvfb r2bJspX67e6tzfe6jjysNpUGxUYCZYnWepVxrEsnMh75azzrKYOvZOXeE4_J VwjLwwXNXfspMkQDYzBQoWsRC4NCxadT_V74.EP37Wu2V6SytOvE0H68jw4B av2LfcEzftbOXW5QuQTxTETOMRkHL1RAk9z4Tt5IqLV_CUmZ2GNTCFMGe8ZK 6VBGOTkbigD43EJAv.QHueKpUFQ_ak6w33fJCLXFJhZtdlfNbSQ.KbJlZ0Vd Wa.ZZdT6l1QNwXAIG Received: from [200.88.139.78] by web124504.mail.ne1.yahoo.com via HTTP; Thu, 06 Sep 2012 13:04:31 PDT X-Mailer: YahooMailWebService/0.8.121.416 Message-ID: <1346961871.28573.YahooMailNeo@web124504.mail.ne1.yahoo.com> Date: Thu, 6 Sep 2012 13:04:31 -0700 (PDT) From: Aryan Ariel Rodriguez Chalas Reply-To: Aryan Ariel Rodriguez Chalas Subject: libpq or postgresql performance To: "pgsql-performance@postgresql.org" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: 0.8 (/) X-Archive-Number: 201209/20 X-Sequence-Number: 47766 Hello,=0A=0AI'm working with an application that connects to a remote serve= r database using "libpq" library over internet, but making a simple query i= s really slow even though I've done PostgreSQL Tunning and table being inde= xed, so I want to know:=0A=0A-Why is postgresql or libpq that slow when wor= king over internet?=0A-What else should I do to solve this issue in additio= n of postgresql tunning?=0A-Why if I connect to the remote server desktop (= using RDP or any Remote Desktop Application) and run the application using = the same internet connection, it runs really fast when making requests to p= ostgresql; but if I run the application locally by connecting to the remote= postgresql server through "libpq", it's really slow?.=0A=0AThanks in advan= ce,=0A=0AAriel Rodriguez=0A