pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Wieck <JanWieck@Yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Blood <david@matraex.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Pinning a table into memory
Date: Tue, 08 Oct 2002 09:32:50 -0400
Message-ID: <3DA2DE82.1AC84934@Yahoo.com> (raw)
References: <03a301c26bc5$a799a970$1f00a8c0@redwood>
	<25545.1033757267@sss.pgh.pa.us>

Tom Lane wrote:
> 
> "David Blood" <david@matraex.com> 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 #



view thread (3+ messages)

Message-ID: <3DA2DE82.1AC84934@Yahoo.com>
Permalink:  ../3DA2DE82.1AC84934@Yahoo.com/
Also on:    postgresql.org/message-id/3DA2DE82.1AC84934@Yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: JanWieck@Yahoo.com, tgl@sss.pgh.pa.us, david@matraex.com, pgsql-general@postgresql.org
  Subject: Re: Pinning a table into memory
  In-Reply-To: <3DA2DE82.1AC84934@Yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox