Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 54C4C4770E3 for ; Wed, 29 Jan 2003 03:42:14 -0500 (EST) Received: from filter.mimos.my (filter.mimos.my [192.228.137.70]) by postgresql.org (Postfix) with ESMTP id 889F3479CAC for ; Wed, 29 Jan 2003 02:26:31 -0500 (EST) Received: from ew.mimos.my (localhost.localdomain [127.0.0.1]) by filter.mimos.my (8.11.6/8.11.6) with ESMTP id h0T7GMV02541 for ; Wed, 29 Jan 2003 15:16:22 +0800 Received: (from root@localhost) by ew.mimos.my (8.12.3/8.12.3) id h0T7QTdL084714 for pgsql-sql@postgresql.org; Wed, 29 Jan 2003 15:26:29 +0800 (MYT) (envelope-from wahab@mimos.my) Received: from mimos.my (sol-wel197.nat.mimos.my [10.1.23.197]) by ew.mimos.my (8.12.3/8.11.6) with ESMTP id h0T7QS1t084574 for ; Wed, 29 Jan 2003 15:26:28 +0800 (MYT) (envelope-from wahab@mimos.my) Message-ID: <3E378256.BF72E1E8@mimos.my> Date: Wed, 29 Jan 2003 15:27:18 +0800 From: Abdul Wahab Dahalan Reply-To: wahab@mimos.my Organization: Mimos Berhad X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: USING INDEX X-scanner: scanned by Inflex 1.0.10 - (http://pldaniels.com/inflex/) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/475 X-Sequence-Number: 11340 How do we determine which column/s to be set when creating an INDEX? As I understand, using INDEX the query will be more faster then without using INDEX. How about using INDEX if query is a JOIN query, which involved 4 tables.