Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 34D0C476993 for ; Tue, 8 Oct 2002 09:33:54 -0400 (EDT) Received: from smtp014.mail.yahoo.com (smtp014.mail.yahoo.com [216.136.173.58]) by postgresql.org (Postfix) with SMTP id 69EC3476117 for ; Tue, 8 Oct 2002 09:33:03 -0400 (EDT) Received: from psc.progress.com (HELO Yahoo.com) (janwieck@192.233.92.200 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 8 Oct 2002 13:32:55 -0000 Message-ID: <3DA2DE82.1AC84934@Yahoo.com> Date: Tue, 08 Oct 2002 09:32:50 -0400 From: Jan Wieck Organization: Home X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) X-Accept-Language: en,ru MIME-Version: 1.0 To: Tom Lane Cc: David Blood , pgsql-general@postgresql.org Subject: Re: Pinning a table into memory References: <03a301c26bc5$a799a970$1f00a8c0@redwood> <25545.1033757267@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/445 X-Sequence-Number: 31443 Tom Lane wrote: > > "David Blood" writes: > > In Oracle you can Pin large objects into memory to prevent frequent > > reloads. Is there anyway to do this with Postgres? > > I can never understand why people think this would be a good idea. > If you're hitting a table frequently, it will stay in memory anyway > (either in Postgres shared buffers or kernel disk cache). If you're > not hitting it frequently enough to keep it swapped in, then whatever > is getting swapped in instead is probably a better candidate to be > occupying the space. As I understand it, he's looking for a mechanism to prevent a single sequential scan on a table, larger than the buffer cache, to kick out everything else at once. But I agree with you that pinning other objects is just mucking with the symptoms instead of curing the desease. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #