pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brett W. McCoy <bmccoy@lan2wan.com>
To: Stuart Rison <stuart@ludwig.ucl.ac.uk>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] How to split very long tables?
Date: Mon, 6 Jul 1998 09:59:03 -0400 (EDT)
Message-ID: <Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.com> (raw)
In-Reply-To: <l03110708b1c676a184fa@[128.40.242.190]>

On Mon, 6 Jul 1998, Stuart Rison wrote:

> I am using postgreSQL to matain a database of breast cancer patient data.
> I have create a hugely long (i.e. many columns) table and it is becoming
> unmanageable (I can't get the whole of it on screen, some queries appear to
> exceed the maximum string length etc.)
> 
> How do you 'split' a long table without adding excessive redundency?  Is it
> OK to just cut the table up and use the same primary key?

Is it possible to normalize your table, and build up a set of relations 
between the tables?  If not, you may want to break your tables down into 
years (I do this for some data), and just treat each year as a discrete 
set.  You may be able to do a join between views to use the tables as a 
single set of data, but then you are right back where you started with 
too much data.  How many rows are in this table?

Brett W. McCoy           
                                         http://www.lan2wan.com/~bmccoy
-----------------------------------------------------------------------
"The Number of UNIX installations has grown to 10, with more expected."
   -- The UNIX Programmer's Manual, 2nd Edition, June, 1972




view thread (2+ messages)

Message-ID: <Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.com>
Permalink:  ../Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.com/
Also on:    postgresql.org/message-id/Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.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-sql@postgresql.org
  Cc: bmccoy@lan2wan.com, stuart@ludwig.ucl.ac.uk
  Subject: Re: [SQL] How to split very long tables?
  In-Reply-To: <Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.com>
  References: <l03110708b1c676a184fa@[128.40.242.190]> <Pine.BSI.3.91.980706095631.19636C-100000@access1.lan2wan.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