pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <mail@joeconway.com>
To: Greg Stark <gsstark@mit.edu>
Cc: David Garamond <lists@zara.6.isreserved.com>
Cc: pgsql-general@postgresql.org
Subject: Re: how many record versions
Date: Mon, 24 May 2004 11:15:07 -0700
Message-ID: <40B23BAB.8090007@joeconway.com> (raw)
In-Reply-To: <87pt8tq5ut.fsf@stark.xeocode.com>
References: <40AFAD9F.6000104@zara.6.isreserved.com>
	<gpd1b0t6m33cpv0c95o7nqros9rpf5gvk7@email.aon.at>
	<40B0D230.6030803@zara.6.isreserved.com>
	<87vfimq114.fsf@stark.xeocode.com>
	<40B1904A.3090307@zara.6.isreserved.com>
	<87pt8tq5ut.fsf@stark.xeocode.com>

Greg Stark wrote:
> Well this was actually under Oracle, but I can extrapolate to Postgres given
> my experience.
> 
> The idea tool for the job is a feature that Postgres has discussed but hasn't
> implemented yet, "partitioned tables". Under Oracle with partitioned tables we
> were able to drop entire partitions virtually instantaneously. It also made
> copying the data out to near-line backups much more efficient than index
> scanning as well.

I think you can get a similar effect by using inherited tables. Create 
one "master" table, and then inherit individual "partition" tables from 
that. Then you can easily create or drop a "partition", while still 
being able to query the "master" and see all the rows.

HTH,

Joe



view thread (14+ messages)

Message-ID: <40B23BAB.8090007@joeconway.com>
Permalink:  ../40B23BAB.8090007@joeconway.com/
Also on:    postgresql.org/message-id/40B23BAB.8090007@joeconway.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: mail@joeconway.com, gsstark@mit.edu, lists@zara.6.isreserved.com
  Subject: Re: how many record versions
  In-Reply-To: <40B23BAB.8090007@joeconway.com>
  References: <40AFAD9F.6000104@zara.6.isreserved.com> <gpd1b0t6m33cpv0c95o7nqros9rpf5gvk7@email.aon.at> <40B0D230.6030803@zara.6.isreserved.com> <87vfimq114.fsf@stark.xeocode.com> <40B1904A.3090307@zara.6.isreserved.com> <87pt8tq5ut.fsf@stark.xeocode.com> <40B23BAB.8090007@joeconway.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