Re: SQL - planet redundant data - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: SQL - planet redundant data
Date
Msg-id 20050909235051.GQ7630@pervasive.com
Whole thread Raw
In response to SQL - planet redundant data  (Poul Jensen <flyvholm@gfy.ku.dk>)
List pgsql-general
On Thu, Sep 08, 2005 at 07:58:55PM -0800, Poul Jensen wrote:
> This novice must be missing a sneaky way to avoid massive redundancy and
> still maintain easy access. I've been suggested to look at inheritance
> and foreign keys. Foreign keys I don't see how to use, but I could make

What you seem to be looking for is a form of partitioning. PostgreSQL
doesn't currently support partitioning of this form, but there's work in
progress to change that.

As someone else mentioned, you could do it with a union all view.
http://cvs.distributed.net/viewcvs.cgi/stats-sql/logdb/ has an example
of this.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Support for Limit in Update, Insert...
Next
From: "Jim C. Nasby"
Date:
Subject: Re: RAID0 and pg_xlog