Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EA80D2E2DF6 for ; Fri, 14 Dec 2007 07:37:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 89474-05 for ; Fri, 14 Dec 2007 07:37:24 -0400 (AST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by postgresql.org (Postfix) with ESMTP id CCE542E2D8A for ; Fri, 14 Dec 2007 07:37:23 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id f5so783411nfh.23 for ; Fri, 14 Dec 2007 03:37:22 -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=LkCN0K51CslyoWE0Mxrrm9oCowZA5RInq5atyoxI8z0=; b=PqZ1PRr8UCkeMnZvVm77xkyO/ZUqWcgsGn2Ooh4Cit9/Q706v2I6JygDLhGYycigLaRI1LC54lvKyzBTwZaWXpsK4LRzhw8dxJ77PnK7B6B8pjkGfPKNY1DmL6qEufVxadPMIullwvApN5ZZdMZbZuohfEwFfYYXzjZf96A6P0s= 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=IInHUJsUXF2VAQ6agIB2lD3tD+vP8Gj9qVvzTVjK1Pw3Eh7C3lVLrhLqX16ma/pznNeqQGRHbNTG7fpd48XZCm4GGjb9aVCwt+DvGTSAaVNU6eHRBnEfwjsw91ER8VzW5u5tr8nizAUfY4lW5kG5h+Z4A0jnAheUN/mBY6KOSCM= Received: by 10.86.89.4 with SMTP id m4mr2913124fgb.45.1197632241853; Fri, 14 Dec 2007 03:37:21 -0800 (PST) Received: from ?192.168.2.213? ( [81.196.40.147]) by mx.google.com with ESMTPS id d4sm4048321fga.2007.12.14.03.37.19 (version=SSLv3 cipher=RC4-MD5); Fri, 14 Dec 2007 03:37:19 -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: Guillaume Smet Cc: Tom Duffey , pgsql-jdbc@postgresql.org In-Reply-To: <1d4e0c10712140115v6860c52en7165ef58ddc93510@mail.gmail.com> References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> <1197622516.6335.23.camel@albertlr-rss> <1d4e0c10712140115v6860c52en7165ef58ddc93510@mail.gmail.com> Content-Type: text/plain; charset=utf-8 Organization: RSoft Solutions S.R.L. Date: Fri, 14 Dec 2007 13:39:21 +0200 Message-Id: <1197632361.6335.52.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/118 X-Sequence-Number: 17973 On Fri, 2007-12-14 at 10:15 +0100, Guillaume Smet wrote: > Albert, > > On Dec 14, 2007 9:55 AM, Albert László-Róbert > wrote: > > 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. > > Did you analyze your database after upgrade? yes > > Can you enable log_min_duration_statement to see which queries are > slower than before? You can use pgFouine to obtain an analysis of the > log file. > > -- > Guillaume We would try that if we hadn't to concentrate on solving the problem for the most resource-demanding queries which currently are not working at all. We presume, though, that problem is around optimizing queries with large result sub-selects joined with other ones. -- László-Róbert, Albert mobile: +40-(0)-742-874-854 office: +40-(0)-365-410-540 e-mail: albertlaszlorobert@gmail.com