Re: Tablespaces

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Tablespaces
Date: 2004-06-09 15:39:10
Message-ID: 87y8mwvizl.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-hackers-win32


Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org> writes:

> On Thu, 26 Feb 2004, Gavin Sherry wrote:
>
> > Comments? Questions? Suggestions?
>
> Is that plan that in the future one can split a single table into
> different table spaces? Like storing all rows with year < 1999 in one
> tablespace and the rest in another?

That's a separate orthogonal feature called "partitioned tables". There's some
amount of resistance to the idea amongst postgres people, and there's nobody
who has spoken up interested in implementing it, but there's also lots of
interest from users. A good patch would probably go a long way to convincing
people :)

Table spaces are being able to store different tables in different physical
locations on disk. A first version of this has actually been implemented for
7.5 using symlinks.

Partitioned tables and tablespaces do indeed have a certain amount of synergy.
But even in a single tablespace your example makes sense.

> With the rule system and two underlying tables one could make it work by
> hand I think.

The rule system could be used to do this, but there was some discussion of
using inherited tables to handle it. However neither handles the really hard
part of detecting queries that use only a part of the table and taking that
into account in generating the plan.

--
greg

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Shridhar Daithankar 2004-06-09 15:43:05 Re: Improving postgresql.conf
Previous Message Greg Stark 2004-06-09 15:31:02 Re: sequences and "addval('myseq', value)"

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2004-06-09 16:47:25 Re: pg_ctl start broken on windows
Previous Message Andrew Dunstan 2004-06-09 14:45:41 pg_ctl start broken on windows