Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DCB55474E53; Fri, 1 Nov 2002 09:10:26 -0500 (EST) Received: from jester.senspire.com (nat.inquent.com [216.6.14.45]) by postgresql.org (Postfix) with ESMTP id 4CD6E474E44; Fri, 1 Nov 2002 09:10:26 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by jester.senspire.com (8.12.6/8.12.6) with ESMTP id gA1EB3I3005829; Fri, 1 Nov 2002 09:11:03 -0500 (EST) (envelope-from rbt@rbt.ca) Subject: Re: [pgsql-performance] Is dump-reload the only cure? From: Rod Taylor To: mallah@trade-india.com Cc: pgsql-admin@postgresql.org, pgsql-performance@postgresql.org In-Reply-To: <1062.203.145.130.142.1036155816.squirrel@mail.trade-india.com> References: <1584.203.145.130.142.1036149343.squirrel@mail.trade-india.com> <1036155160.3550.8.camel@jester> <1062.203.145.130.142.1036155816.squirrel@mail.trade-india.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 01 Nov 2002 09:11:03 -0500 Message-Id: <1036159864.5794.5.camel@jester> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/22 X-Sequence-Number: 6210 On Fri, 2002-11-01 at 08:03, mallah@trade-india.com wrote: > > Hi Rod , > > Does it means that index scan is used for less frequenlty occuring data? > yes my table was not clustered. > > can u tell me what does 0.00..6788.24 and rows and width means? > > in explain out put cost=0.00..6788.24 rows=30001 width=4 > > > I have one more table where i face the similar problem , i have not dump - reloaded > it yet , will post again if i face the problem. Keep in mind that an index scan is very expensive in regards to a single tuple. It has to run through (fetch) the index pages, then fetch the pages from the table. Since the table fetches are random, the harddrive will probably incur a seek for each tuple found in the index. The seeks add up much quicker than a sequential scan (without nearly as many seeks or drive head movements). -- Rod Taylor