Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 6D918475926 for ; Wed, 6 Mar 2002 23:33:19 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g274XHS29595; Wed, 6 Mar 2002 23:33:18 -0500 (EST) To: jmcgraw@databill.com Cc: pgsql-admin@postgresql.org Subject: Re: Large table or many small tables? In-reply-to: References: Comments: In-reply-to Joel Mc Graw message dated "Wed, 06 Mar 2002 21:19:29 -0300" Date: Wed, 06 Mar 2002 23:33:17 -0500 Message-ID: <29592.1015475597@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/84 X-Sequence-Number: 3618 Joel Mc Graw writes: > Assuming that the data is exactly the same, I'm wondering if it is > better to store it in a single large table or many smaller tables. > Right now I have upwards of 2000 tables, some containing upwards of > 10,000 records, and each record contains a large amount of text stored > in a varchar field. 10K records is in the range of "too small to notice". On the other hand, 2000 tables is probably more files than you want to be holding open at once, on most Unixen. You would be much better off with one table having 20M records, I should think. regards, tom lane