X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4EF2DD1E944 for ; Thu, 15 Apr 2004 20:33:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 48174-08 for ; Thu, 15 Apr 2004 20:33:40 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4EDBFD1E1F3 for ; Thu, 15 Apr 2004 20:33:33 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3FNXfXd022273; Thu, 15 Apr 2004 19:33:41 -0400 (EDT) To: Robert Treat Cc: Ashvinder Singh , pgsql-admin@postgresql.org Subject: Re: Maximum Number Tables In-reply-to: <1082039198.23008.816.camel@camel> References: <001d01c42046$8bed97e0$5608a8c0@ashvinder> <1082039198.23008.816.camel@camel> Comments: In-reply-to Robert Treat message dated "15 Apr 2004 10:26:38 -0400" Date: Thu, 15 Apr 2004 19:33:41 -0400 Message-ID: <22272.1082072021@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/233 X-Sequence-Number: 13206 Robert Treat writes: > On Mon, 2004-04-12 at 00:28, Ashvinder Singh wrote: >> What is the maximum number of tables I can have in a PGSql Database, >> without affecting performance? > The number of tables is irrelevant, Not necessarily ... if you are using a filesystem in which directory lookups in large directories are inefficient, you could have a problem, since each table will correspond to a file within the database directory. If you're planning on having more than a few thousand tables you'll want to choose a filesystem that copes well with large directories. But having said that, an application that needs several thousand distinct tables is usually an application that needs a redesign. Consider folding the data into fewer tables with more key columns. regards, tom lane