Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id F31FA2E01DE for ; Fri, 14 Dec 2007 04:53:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 31920-02 for ; Fri, 14 Dec 2007 04:53:04 -0400 (AST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by postgresql.org (Postfix) with ESMTP id 4169C2E2FE1 for ; Fri, 14 Dec 2007 04:53:18 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id f5so745155nfh.23 for ; Fri, 14 Dec 2007 00:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc:in-reply-to:references:content-type:organization:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=TpNf9Cbcj8W6FeOSJpNJMLshGlC8TPi5mR2UxXIkYhI=; b=h7/wR37hQ7he1rIv3YOB1vK+D3SCParrq0IUuOlEz5uM3j0qmf57EIytFwz6YB7RJDrzB/PdN1lYl2X6uTQ2MIZEPnlGA82bZa75GBFDWeIQrQvj9n0ZkPYl3MYejnXU2aWm2umz2qmPgXJSMZIe9h+ARzDIg5BmwOpWQz6fy98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type:organization:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=cThZT5ia6OH56lkUwzr2Gr6q6JY/PdlKE/R9w28WTm371YmlJ8RBvbTSQInnihU5j+3kYm5zVRnouXJvKuH82BQqWAN2LS/5E0RVTeT9uJYlkmBpBJnnVB/JAecQyP3f2MkDb1V5yMJMzCci2dHAiM2su6cwkgrnNf94AkUc1cw= Received: by 10.86.54.3 with SMTP id c3mr2775385fga.64.1197622396806; Fri, 14 Dec 2007 00:53:16 -0800 (PST) Received: from ?192.168.2.213? ( [81.196.40.147]) by mx.google.com with ESMTPS id e11sm5933140fga.2007.12.14.00.53.13 (version=SSLv3 cipher=RC4-MD5); Fri, 14 Dec 2007 00:53:14 -0800 (PST) Subject: Re: Slow query after upgrades From: Albert =?ISO-8859-1?Q?L=E1szl=F3-R=F3bert?= Reply-To: albertlaszlorobert@gmail.com To: Tom Duffey Cc: pgsql-jdbc@postgresql.org In-Reply-To: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> Content-Type: text/plain; charset=utf-8 Organization: RSoft Solutions S.R.L. Date: Fri, 14 Dec 2007 10:55:16 +0200 Message-Id: <1197622516.6335.23.camel@albertlr-rss> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/112 X-Sequence-Number: 17967 Hi All, i have the same problem like above, with a little difference. i read all the messages posted on this topic, and the symptoms were the same. On Thu, 2007-12-13 at 15:15 -0600, Tom Duffey wrote: > Hi All, > > We recently upgraded both our PostgreSQL server version (8.1.10 to > 8.2.5) and JDBC driver version (pg74.216.jdbc3, yeah, I know... to firstly we upgraded from version 8.1.2 (8.1 [i don't know the build number] JDBC3 Driver) to 8.2.4 (initially we used the same driver and we upgraded to the 8.2-507 JDBC3 driver) and we noticed this problem that the queries that were using outer joins were slow. we find out that in 8.2.4 there was a problem with the optimization and the developers advise to use the 8.2.5 ... so we upgraded the database to 8.2.5. i must notice that before the database was running on a dual CPU server with 2GB of memory ... the upgraded database was installed on a 4 CPU system with 6 GB of memory ... so we expected some speed improvements but we were disappointed. > 8.2-507 JDBC4). Our application has several components and all but > > one are working great. Unfortunately, one of them is running much > slower when I use the new JDBC driver. If I leave everything else > exactly the same but roll back to the pg74.216.jdbc3 driver we do not tried this because we desperately needed the case sensitive and case insensitive improvements of the LIKE and ILIKE operators on the Unicode character set (UTF8-hu). > performance improves quite a bit. By quite a bit I mean a process > that takes about 15 minutes to run with the old JDBC driver takes over > an hour and a half with the new driver. the performance before were arount 1-2 minutes ... and after the upgrade it was about 30-40 minutes and more ... but because our application is running throw the internet using the CORBA technology in most of the cases the database throws an org.postgresql.util.PSQLException(: An I/O error occured while sending to the backend.) exception. > > I'm leaving the old JDBC driver there for now but am wondering if > anyone has any ideas what I should look for to find a solution to > this? I jProfiled the execution and it is indeed the JDBC query that > is taking significantly more time to execute with the newer driver in > place. > > Best Regards, > > Tom > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq i hope this will help in the solving of the problem and maybe to get a better suggestion to solve our problem. sorry for my english ... i'm not native :) regards -- László-Róbert, Albert mobile: +40-(0)-742-874-854 office: +40-(0)-365-410-540 e-mail: albertlaszlorobert@gmail.com