Re: Table Partitioning and Rules - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Table Partitioning and Rules
Date
Msg-id 200307171203.13134.josh@agliodbs.com
Whole thread Raw
In response to Re: Table Partitioning and Rules  (Richard Huxton <dev@archonet.com>)
Responses Re: Table Partitioning and Rules  (Rod Taylor <rbt@rbt.ca>)
Re: Table Partitioning and Rules  ("Girish Bajaj" <gbajaj@tietronix.com>)
List pgsql-sql
Girish,

> > Essentially Im trying to store a persons information in a table in the
> > database. Since we could have millions of people, with duplicates! Ive
> > decided we need to partition the table into segments where all people with
> > the LastName starting from A to G will be in one table. H-N will be in
> > another table and O-Z in the third. Ive created a VIEW that does a UNION
on
> > all the tables.

This sounds hideously inefficient and a management headache besides.  I think
PostgreSQL will accept up to 2 billion rows in any one table, and splitting
stuff into 3 tables will not improve your performance ... quite the opposite.

Change your database design.

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: OR vs UNION
Next
From: Scott Cain
Date:
Subject: Re: OR vs UNION