X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 07F96CC4E3 for ; Thu, 17 Jul 2003 19:03:41 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 27564-06 for ; Thu, 17 Jul 2003 19:04:08 +0000 (GMT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id B59F1CBB94 for ; Thu, 17 Jul 2003 16:03:38 -0300 (ADT) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3225756; Thu, 17 Jul 2003 12:04:25 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Richard Huxton , "Girish Bajaj" , Subject: Re: Table Partitioning and Rules Date: Thu, 17 Jul 2003 12:03:13 -0700 User-Agent: KMail/1.4.3 References: <002f01c34c87$a72f59a0$7764a8c0@tietronix.com> <200307171952.07485.dev@archonet.com> In-Reply-To: <200307171952.07485.dev@archonet.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200307171203.13134.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/236 X-Sequence-Number: 14350 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 w= ith > > 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 UNIO= N=20 on > > all the tables. This sounds hideously inefficient and a management headache besides. I thi= nk=20 PostgreSQL will accept up to 2 billion rows in any one table, and splitting= =20 stuff into 3 tables will not improve your performance ... quite the opposit= e. Change your database design. --=20 -Josh Berkus Aglio Database Solutions San Francisco