Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9rEB-00071j-Lh for pgsql-performance@postgresql.org; Fri, 07 Sep 2012 05:35:39 +0000 Received: from mailout01.ims-firmen.de ([213.174.32.96]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T9rE9-0002f2-SC for pgsql-performance@postgresql.org; Fri, 07 Sep 2012 05:35:38 +0000 Received: from mailin04.ims-firmen.de ([192.168.1.144]) by mailout01.ims-firmen.de with esmtp (envelope-from ) id 1T9rE7-0004qC-hp for pgsql-performance@postgresql.org; Fri, 07 Sep 2012 07:35:35 +0200 Received: from [87.170.188.235] (helo=a-kretschmer.de) by mailin04.ims-firmen.de with esmtpsa (TLSv1:AES256-SHA:256) (envelope-from ) id 1T9rE7-00073q-Ap for pgsql-performance@postgresql.org; Fri, 07 Sep 2012 07:35:35 +0200 Received: from kretschmer by a-kretschmer.de with local (Exim 4.69) (envelope-from ) id 1T9rE6-00022R-8k for pgsql-performance@postgresql.org; Fri, 07 Sep 2012 07:35:34 +0200 Date: Fri, 7 Sep 2012 07:35:34 +0200 From: Andreas Kretschmer To: pgsql-performance@postgresql.org Subject: Re: libpq or postgresql performance Message-ID: <20120907053534.GA7707@tux> References: <1346961871.28573.YahooMailNeo@web124504.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1346961871.28573.YahooMailNeo@web124504.mail.ne1.yahoo.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: Mutt/1.5.18 (2008-05-17) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201209/22 X-Sequence-Number: 47768 Aryan Ariel Rodriguez Chalas wrote: > Hello, > > I'm working with an application that connects to a remote server database using "libpq" library over internet, but making a simple query is really slow even though I've done PostgreSQL Tunning and table being indexed, so I want to know: define slow. > > -Why is postgresql or libpq that slow when working over internet? > -What else should I do to solve this issue in addition of postgresql tunning? > -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 postgresql; but if I run the application locally by connecting to the remote postgresql server through "libpq", it's really slow?. Maybe DNS-Resolving - Problems... Andreas -- Really, I'm not out to destroy Microsoft. That will just be a completely unintentional side effect. (Linus Torvalds) "If I was god, I would recompile penguin with --enable-fly." (unknown) Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°