X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BAD9414B281C for ; Wed, 11 Aug 2004 21:25:44 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34932-05 for ; Thu, 12 Aug 2004 00:25:36 +0000 (GMT) Received: from davinci.ethosmedia.com (server226.ethosmedia.com [209.128.84.226]) by svr1.postgresql.org (Postfix) with ESMTP id 6CCF114B2806 for ; Wed, 11 Aug 2004 21:25:33 -0300 (ADT) Received: from [64.81.245.111] (HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 6054861; Wed, 11 Aug 2004 17:26:53 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: tech@wildcash.com, pgsql-performance@postgresql.org Subject: Re: Buld Insert and Index use. Date: Wed, 11 Aug 2004 17:25:55 -0700 User-Agent: KMail/1.5.4 References: <411AB302.809@wildcash.com> In-Reply-To: <411AB302.809@wildcash.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408111725.55270.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/180 X-Sequence-Number: 7816 Rudi, > Do you think an Index or Seq. scan should be used? That was way too much data for way too simple a question. ;-) The answer is: depends on how many rows you have. With any significant number of rows, yes. However, you probably only need to index the first 3-5 columns; that's selective enough. -- -Josh Berkus "A developer of Very Little Brain" Aglio Database Solutions San Francisco