X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8C892476360 for ; Mon, 24 Mar 2003 13:59:28 -0500 (EST) Received: from megazone.bigpanda.com (megazone.bigpanda.com [63.150.15.178]) by postgresql.org (Postfix) with ESMTP id 6BCBE476362 for ; Mon, 24 Mar 2003 13:59:26 -0500 (EST) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 6130CD620; Mon, 24 Mar 2003 10:59:26 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 50E355C0A; Mon, 24 Mar 2003 10:59:26 -0800 (PST) Date: Mon, 24 Mar 2003 10:59:26 -0800 (PST) From: Stephan Szabo To: Mario Alberto Soto Cordones Cc: Subject: Re: what its better seqscan or indexscan In-Reply-To: <1717.192.168.1.100.1048530928.squirrel@www.compuall.cl> Message-ID: <20030324105832.W25958-100000@megazone23.bigpanda.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE X-Spam-Status: No, hits=-16.3 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/400 X-Sequence-Number: 8040 On Mon, 24 Mar 2003, Mario Alberto Soto Cordones wrote: > what it=B4s a better use the seqscan or indexscan Neither in general, it depends on the particular query and the number of rows in a table and number of rows you're expecting to return.