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 4D150D1D222 for ; Fri, 26 Mar 2004 23:08:50 +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 18896-03 for ; Fri, 26 Mar 2004 19:08:56 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id CE01FD1B4B0 for ; Fri, 26 Mar 2004 19:08:47 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2QN8ttG028300; Fri, 26 Mar 2004 18:08:55 -0500 (EST) To: "Ara Anjargolian" Cc: pgsql-performance@postgresql.org Subject: Re: odd planner choice In-reply-to: <001401c412f6$88281700$6401a8c0@ARA> References: <001401c412f6$88281700$6401a8c0@ARA> Comments: In-reply-to "Ara Anjargolian" message dated "Thu, 25 Mar 2004 21:52:31 -0800" Date: Fri, 26 Mar 2004 18:08:54 -0500 Message-ID: <28299.1080342534@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/391 X-Sequence-Number: 6247 "Ara Anjargolian" writes: > jargol=# explain select user_id, first_names, last_name from articles, users > where article_id = 5027 and (articles.author_id1 = users.user_id or > articles.author_id2 = users.user_id); > Why does it think it MUST do a seq-scan in the second case? There's no support for generating an OR indexscan in the context of a join. regards, tom lane