Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 3F69A476036 for ; Fri, 7 Jun 2002 08:20:49 -0400 (EDT) Received: from smtp0.telegraaf.net (smtp0.telegraaf.net [217.196.45.130]) by postgresql.org (Postfix) with ESMTP id 729EC475E53 for ; Fri, 7 Jun 2002 08:20:43 -0400 (EDT) Received: from server9.telegraafnet.nl (server9.telegraafnet.nl [192.168.1.9]) by smtp0.telegraaf.net (Postfix) with ESMTP id B1575439B8 for ; Fri, 7 Jun 2002 14:20:46 +0200 (CEST) Received: from c22601 (c22601.ws.tem.nl [192.168.1.61]) by server9.telegraafnet.nl (8.11.1/8.11.1/Debian 8.11.0-6) with ESMTP id g57CKk122224 for ; Fri, 7 Jun 2002 14:20:46 +0200 X-Authentication-Warning: server9.telegraafnet.nl: Host c22601.ws.tem.nl [192.168.1.61] claimed to be c22601 Content-Type: text/plain; charset="us-ascii" From: Ferdinand Smit To: pgsql-admin@postgresql.org Subject: Postgres network preformance Date: Fri, 7 Jun 2002 14:20:46 +0200 User-Agent: KMail/1.4.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200206071420.46460.ferdinand@telegraafnet.nl> X-Archive-Number: 200206/40 X-Sequence-Number: 4475 Hi, Does anyone have any tips to improve the network preformance op Postgres ? To test the preformance i've done a little test using the perlmodule DBI. The ping last 1 ms and the computers are identical. The test script: #!/usr/bin/perl use DBI; my $connectTo = "dbi:Pg:dbname=testdb;host=obelix.telegraaf.net"; my $dbh = DBI->connect($connectTo,undef,undef,undef) or die("$DBI::errstr ($connectTo)"); my $sth = $dbh->prepare("SELECT ?") or die $DBI::errstr; for ($T=0; $T<10000; $T++) { $sth->execute($T); $sth->finish; } $dbh->disconnect(); The 'time' results: - Running local: real 0m2.770s user 0m0.490s sys 0m0.250s - Via network: real 0m39.919s user 0m0.470s sys 0m0.190s