pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gnuoytr@rcn.com
To: pgsql-performance@postgresql.org
Subject: Re: How does PG know if data is in memory?
Date: Tue, 12 Oct 2010 10:20:19 -0400 (EDT)
Message-ID: <20101012102019.ANC95779@ms14.lnh.mail.rcn.net> (raw)
In-Reply-To: <AANLkTinhh5mh3DK3+0ULtLUoAzuwd8BbYxLOUkcohQ26@mail.gmail.com>
References: <AANLkTin5G0jXUbeNdC+1s9LQpk1ZpvDuX-6n90oonen3@mail.gmail.com>
	<4CA9488C.2080502@2ndquadrant.com>
	<4CAA5974.2050805@wizmail.org>
	<AANLkTi=gBcvy2_Ey2q_gaiyUOjrGU4LoYfdbO9uxEZDX@mail.gmail.com>
	<20101011231134.ANB76937@ms14.lnh.mail.rcn.net>
	<AANLkTinhh5mh3DK3+0ULtLUoAzuwd8BbYxLOUkcohQ26@mail.gmail.com>

The discussions I've seen indicated that, in use, tablespaces were at the database level, but, yes, the docs do say that a table can be assigned to a defined tablespace.  What I still can't find is syntax which establishes buffers/caches/whatever and assigns them to tablespaces.  Without that, I'm not sure what benefit there is to tablespaces, other than a sort of RAID-lite.

Robert


---- Original message ----
>Date: Tue, 12 Oct 2010 08:34:23 -0400
>From: pgsql-performance-owner@postgresql.org (on behalf of Robert Haas <robertmhaas@gmail.com>)
>Subject: Re: [PERFORM] How does PG know if data is in memory?  
>To: gnuoytr@rcn.com
>Cc: pgsql-performance@postgresql.org
>
>On Mon, Oct 11, 2010 at 11:11 PM,  <gnuoytr@rcn.com> wrote:
>> An approach that works can be found in DB2, and likely elsewhere.
>>
>> The key is that tablespaces/tables/indexes/buffers are all attached through the bufferpool (the DB2 term).  A tablespace/bufferpool match is defined.  Then tables and indexes are assigned to the tablespace (and implicitly, the bufferpool).  As a result, one can effectively pin data in memory.  This is very useful, but not low hanging fruit to implement.
>>
>> The introduction of rudimentary tablespaces is a first step.  I assumed that the point was to get to a DB2-like structure at some point.  Yes?
>
>We already have tablespaces, and our data already is accessed through
>the buffer pool.
>
>-- 
>Robert Haas
>EnterpriseDB: http://www.enterprisedb.com
>The Enterprise PostgreSQL Company
>
>-- 
>Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-performance



view thread (31+ messages)  latest in thread

Message-ID: <20101012102019.ANC95779@ms14.lnh.mail.rcn.net>
Permalink:  ../20101012102019.ANC95779@ms14.lnh.mail.rcn.net/
Also on:    postgresql.org/message-id/20101012102019.ANC95779@ms14.lnh.mail.rcn.net

 · 

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-performance@postgresql.org
  Cc: gnuoytr@rcn.com
  Subject: Re: How does PG know if data is in memory?
  In-Reply-To: <20101012102019.ANC95779@ms14.lnh.mail.rcn.net>

* 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