Re: WORM and Read Only Tables (v0.1)

From: Hannu Krosing <hannu(at)skype(dot)net>
To: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: WORM and Read Only Tables (v0.1)
Date: 2007-12-11 12:58:05
Message-ID: 1197377886.7138.2.camel@hannu-laptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Ühel kenal päeval, T, 2007-12-11 kell 13:44, kirjutas Csaba Nagy:
> On Tue, 2007-12-11 at 11:12 +0000, Simon Riggs wrote:
> > Features
> > - Read Only Tables
> > - Compressed Tablespaces
>
> I wonder if instead of read-only tables wouldn't it be better to have
> some kind of automatic partitioning which permits to have different
> chunks of the table data in different tablespaces, and a freeze command
> which effectively moves the data from the (normally small) active chunk
> to the archive chunk when it's transaction id is older than a predefined
> threshold ?

This would be doable using Simons proposed commands.

> Then put the active chunk on a high performance file system and the
> archive tablespace on a compressed/slow/cheap file system and you're
> done. Allow even the archive chunk to be updateable, and put new tuple
> data in the active chunk. It would work just fine for cases where the
> old data is rarely updated/deleted...

You can't update a table on a read-only (write-once) partition, at least
not with current header structure.

> Another advantage I guess would be that active data would more likely
> stay in cache, as updated records would stay together and not spread
> over the inactive.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zdenek Kotala 2007-12-11 13:06:57 Re: quotas once again
Previous Message Csaba Nagy 2007-12-11 12:50:19 Re: WORM and Read Only Tables (v0.1)