Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 438FF4775FC for ; Fri, 4 Oct 2002 09:57:22 -0400 (EDT) Received: from anchor-post-39.mail.demon.net (anchor-post-39.mail.demon.net [194.217.242.80]) by postgresql.org (Postfix) with ESMTP id E180D47733E for ; Fri, 4 Oct 2002 09:44:44 -0400 (EDT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-39.mail.demon.net with esmtp (Exim 3.36 #2) id 17xSl6-0005ph-0U; Fri, 04 Oct 2002 14:44:48 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 640E517191; Fri, 4 Oct 2002 14:35:54 +0100 (BST) Received: from client.archonet.com (client.archonet.com [192.168.1.16]) by mainbox.archonet.com (Postfix) with ESMTP id CA1051718E; Fri, 4 Oct 2002 14:35:53 +0100 (BST) Content-Type: text/plain; charset="iso-8859-1" From: Richard Huxton Organization: Archonet Ltd To: "Kevin Traub" , pgsql-sql@postgresql.org Subject: Re: Can Postgres cache a table in memory? Date: Fri, 4 Oct 2002 14:35:52 +0100 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210041435.52552.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/60 X-Sequence-Number: 9778 On Thursday 03 Oct 2002 3:03 pm, Kevin Traub wrote: > Hello all; > > I'm trying to speed up a query which returns the majority of a table so a= nd > index isn't helpful. > I've got more than enough RAM to hold my table so, can anyone tell me if > there is there a way to force Postgres to cache a table in RAM? You're probably just as well off if you let your OS deal with caching the= =20 underlying file. What figures are you getting (use the "free" command if in= =20 linux). It might be that you've given Postgresql *too* much memory, and=20 that's interfering with your OS. Could you provide brief hardware specs, the size of the table concerned, ti= me=20 taken? --=20 Richard Huxton