Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLX2g-0000Wm-3j for pgsql-jdbc@postgresql.org; Tue, 09 Oct 2012 10:28:02 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TLX2f-0004RJ-42 for pgsql-jdbc@postgresql.org; Tue, 09 Oct 2012 10:28:01 +0000 Received: by mail-pb0-f46.google.com with SMTP id rr4so4994855pbb.19 for ; Tue, 09 Oct 2012 03:27:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=+/feCqlo1wYanv1ptgHaKoX9hJBytwBT3zHXCYhrdx4=; b=Eukoj5ydrqX4Iu3Pftv7Ch/VrgN/qEuZbEX1Ug5/x9fmw73G6tFgp7vj5fR6lnL+9l 4U7G4BMrsATVAX7Okv9s+K45xVonHnWdmqMg/UZdYDkBUfDM5E6wHszD3lKM+J49YpI/ 9IKcr+A35Cg3rXCWoM3kt8361rLFHQ5jZ/Vj7Un3uVV5K3I6/SanWVglzTAoSNjxAahD rpYnDtfjwwVRJmbJjZv7xZzosni/YL3ugMyww1OYagZtY9QZWWPqmlWa0uVoDMAmtFM2 zN6Cy1XvENPkyhhXpRWN3RmFGaSB8kTFWl6CRQ6zHFzRzaN0KJAm9ana/eqxA3NotcDx gKng== Received: by 10.66.75.168 with SMTP id d8mr51419801paw.63.1349778479096; Tue, 09 Oct 2012 03:27:59 -0700 (PDT) Received: from ayaki.localdomain (125-238-84-125.jetstream.xtra.co.nz. [125.238.84.125]) by mx.google.com with ESMTPS id op7sm6405718pbc.52.2012.10.09.03.27.55 (version=SSLv3 cipher=OTHER); Tue, 09 Oct 2012 03:27:57 -0700 (PDT) Message-ID: <5073FC29.5020401@ringerc.id.au> Date: Tue, 09 Oct 2012 18:27:53 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Eyal Wilde CC: pgsql-jdbc@postgresql.org Subject: Re: bug report: slow getColumnTypeName References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------090401080403030003090501" X-Gm-Message-State: ALoCoQkPk1CymvZnyXRY8XVFdsNx9EYdCLl8YGYpHl1iMNqp8Ood/6T2M38mHC6GZ9JDYM52GJUn X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201210/27 X-Sequence-Number: 23351 This is a multi-part message in MIME format. --------------090401080403030003090501 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 10/09/2012 02:22 PM, Eyal Wilde wrote: > > I verified with wireshark that getColumnTypeName indeed do a request > to the postgres server. This happens with 9.1-901 and 9.1-903 BUT NOT > WITH 9.0-801!! > > So, the reason for the slowness seems to be obviouse now. > > it will take me some time to wrap up it into a test case. I would > realy like to help, but please let me know if it's realy necessary. > > It probably isn't since you've tracked down where the slowness comes from and why. That doesn't mean it's a bug, though; I haven't checked the version history but a network access wouldn't have been added without a reason. -- Craig Ringer --------------090401080403030003090501 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 10/09/2012 02:22 PM, Eyal Wilde wrote:

I verified with wireshark that  getColumnTypeName indeed do a request to the postgres server. This happens with 9.1-901 and 9.1-903 BUT NOT WITH 9.0-801!!

So, the reason for the slowness seems to be obviouse now.

it will take me some time to wrap up it into a test case. I would realy like to help, but please let me know if it's realy necessary.


It probably isn't since you've tracked down where the slowness comes from and why.

That doesn't mean it's a bug, though; I haven't checked the version history but a network access wouldn't have been added without a reason.

--
Craig Ringer
--------------090401080403030003090501--