X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 9B5FF11F623C for ; Wed, 5 Apr 2006 07:40:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 55041-04 for ; Wed, 5 Apr 2006 07:40:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 7EFC811F6212 for ; Wed, 5 Apr 2006 07:40:40 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id F161530F1B; Wed, 5 Apr 2006 12:40:39 +0200 (MET DST) From: "Andrus" X-Newsgroups: pgsql.performance Subject: Re: Query runs too long for indexed tables Date: Wed, 5 Apr 2006 13:40:25 +0300 Organization: Hub.Org Networking Services Lines: 15 Message-ID: References: <1144180128.32266.56.camel@state.g2switchworks.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.129 required=5 tests=[AWL=0.129, UPPERCASE_25_50=0] X-Spam-Score: 0.129 X-Spam-Level: X-Archive-Number: 200604/57 X-Sequence-Number: 18141 > Why not use a LEFT JOIN for this ? UPDATE firma1.rid SET rid.toode=NULL LEFT join firma1.toode using(toode) WHERE rid.toode IS NOT NULL AND toode.toode IS NULL; Causes: ERROR: syntax error at or near "LEFT" at character 41 outer joins are not supported in Postgres UPDATE command. Andrus.