X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BF8FED1B545 for ; Thu, 30 Oct 2003 14:10:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 60045-05 for ; Thu, 30 Oct 2003 10:10:12 -0400 (AST) Received: from trade-india.com (ns1.trade-india.com [66.234.10.14]) by svr1.postgresql.org (Postfix) with SMTP id 939F8D1B51A for ; Thu, 30 Oct 2003 10:10:08 -0400 (AST) Received: (qmail 11033 invoked from network); 30 Oct 2003 14:12:00 -0000 Received: from ns1.trade-india.com (HELO trade-india.com) (66.234.10.14) by ns1.trade-india.com with SMTP; 30 Oct 2003 14:12:00 -0000 Received: from 61.16.154.82 (proxying for 192.168.0.45, 61.16.154.82) (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Thu, 30 Oct 2003 19:42:00 +0530 (IST) Message-ID: <13042.61.16.154.82.1067523120.squirrel@mail.trade-india.com> Date: Thu, 30 Oct 2003 19:42:00 +0530 (IST) Subject: Re: Query puts 7.3.4 on endless loop but 7.4beta5 is fine. [ with better indenting ] From: To: In-Reply-To: References: <33298.203.145.130.142.1067457626.squirrel@mail.trade-india.com> <20031029202920.GZ7337@pallas.fsck.com> <33402.203.145.130.142.1067460429.squirrel@mail.trade-india.com> <200310301702.00275.mallah@trade-india.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/756 X-Sequence-Number: 4504 > mallah@trade-india.com (Rajesh Kumar Mallah) wrote: >> Can you please have a Look at the below and suggest why it >> apparently puts 7.3.4 on an infinite loop . the CPU utilisation of the backend running it >> approches 99%. > > What would be useful, for this case, would be to provide the query plan, perhaps via > > EXPLAIN [Big Long Query]. > > The difference between that EXPLAIN and what you get on 7.4 might be quite interesting. > > I would think it quite unlikely that it is truly an "infinite" loop; it is rather more likely > that the plan winds up being pretty bad and doing something [a bunch of nested loops, maybe?] > that run longer than your patience will permit. :-) ok i will leave it running and try to get it. Regds Mallah. > -- > wm(X,Y):-write(X),write('@'),write(Y). wm('cbbrowne','acm.org'). > http://www3.sympatico.ca/cbbrowne/lsf.html > Rules of the Evil Overlord #81. "If I am fighting with the hero atop a moving platform, have > disarmed him, and am about to finish him off and he glances behind me and drops flat, I too > will drop flat instead of quizzically turning around to find out what he saw." > > > ---------------------------(end of broadcast)--------------------------- TIP 6: Have you > searched our list archives? > > http://archives.postgresql.org ----------------------------------------- Over 1,00,000 exporters are waiting for your order! Click below to get in touch with leading Indian exporters listed in the premier trade directory Exporters Yellow Pages. http://www.trade-india.com/dyn/gdh/eyp/