Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 2F56F9FBA43 for ; Thu, 26 Apr 2007 07:04:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 16347-02 for ; Thu, 26 Apr 2007 07:04:13 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by postgresql.org (Postfix) with ESMTP id 2CC389FB67A for ; Thu, 26 Apr 2007 07:04:17 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so461919ugf for ; Thu, 26 Apr 2007 03:04:15 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=qfoMjvwsseZ9TBNGE2OJHWDS6x0fTUghUPMlBHPRPJRamaiICy2F9yf96w4x7mtVW2zG3EqtkSwySi9lr9P8xaxQlfrWbGHTjEXio5iSrLE/HLayecs5oJArbmFFZ0Vpdrtggv01MnWb6fTR8VAbWyM7tkzXUzolGkp/e2e32PI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=U5GBPP6HcNIkNhiBgbnP5jdj8otuHz9FHKGyisyCQaTooGOymEnIT4akRYpWB3e+IWLRbjBtROQkAJmowku78wFPNbWPWML6lNHNVo7Ax0lhl8XglgFc3pT1Dcf5XLvPCB9KBBk0W0UKXNwmtwE/4DEl2OlfCgX91hW6oyDHrpM= Received: by 10.67.96.1 with SMTP id y1mr2115120ugl.1177581855812; Thu, 26 Apr 2007 03:04:15 -0700 (PDT) Received: from ?172.24.32.35? ( [62.232.55.118]) by mx.google.com with ESMTP id z40sm3756177ugc.2007.04.26.03.04.13; Thu, 26 Apr 2007 03:04:13 -0700 (PDT) Message-ID: <46307911.7030201@enterprisedb.com> Date: Thu, 26 Apr 2007 11:04:01 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Stefan Zweig CC: pgsql-jdbc@postgresql.org Subject: Re: slow jdbc postgres connection References: <58958572@web.de> In-Reply-To: <58958572@web.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/121 X-Sequence-Number: 16970 Stefan Zweig wrote: > when i execute the following query via pgAdminIII i get a result within 31ms > > Select version() > result: PostgreSQL 8.1 > > if try to execute the same query using the jdbc-interface from a java-application the same query needs horrible 4756ms. > my jdbc driver is 8.1-409 JDBC 3 > my postgres version is 8.1.8 > my JRE-Version: 1.5.0_07 Strange. Are you sure the time is spent on executing the query, and not on acquiring the connection? What kind of an application is it? There's no application server or framework involved? Would you please add loglevel=1 to the URL, and post the output? Maybe that will give a clue. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com